<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Balint Csikos on Medium]]></title>
        <description><![CDATA[Stories by Balint Csikos on Medium]]></description>
        <link>https://medium.com/@csikos.balint?source=rss-f3b8d4ff29f6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bE7pJi5pX37TZ6js.jpg</url>
            <title>Stories by Balint Csikos on Medium</title>
            <link>https://medium.com/@csikos.balint?source=rss-f3b8d4ff29f6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:33:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@csikos.balint/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Micro Frontend]]></title>
            <link>https://medium.com/@csikos.balint/micro-frontend-cbe28c130504?source=rss-f3b8d4ff29f6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbe28c130504</guid>
            <category><![CDATA[architectural-design]]></category>
            <category><![CDATA[micro-frontends]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Balint Csikos]]></dc:creator>
            <pubDate>Tue, 07 Apr 2020 17:16:27 GMT</pubDate>
            <atom:updated>2020-04-07T17:16:27.146Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Is it another architectural pattern?</em></p><p>Martin Fowler <a href="https://martinfowler.com/articles/microservices.html">mentions</a> Conway’s law as one of the root causes he was looking for how to componentize software systems. Conway’s law is an adage stating that organizations design systems that mirror their own communication structure.</p><blockquote>Any organization that designs a system (defined broadly) will produce a design whose structure is a copy of the organization’s communication structure.</blockquote><blockquote>— M. Conway</blockquote><p>For example if I work on a small module with a colleague of mine I will know my functions better than his and call my functions more. Eventually, this will result in a form of isolation (separate classes, packages, etc.). The very same happens if the module we are working is part of a larger application. Our module will communicate over well interfaces that represent real world communication boundaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*s1z_Ue7LPO0S6xW3S1-iog.png" /><figcaption>Source: <a href="https://martinfowler.com/articles/microservices.html">https://martinfowler.com/articles/microservices.html</a></figcaption></figure><p>This organization structure will be reflected on the software/system too. Companies realized that silod teams are not optimal and started to organize their teams around business functionalities which is still very natural.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*VqxQdYlj4SxN9mtKoVne4A.png" /><figcaption>Source: <a href="https://martinfowler.com/articles/microservices.html">https://martinfowler.com/articles/microservices.html</a></figcaption></figure><p>When you <em>google</em> ‘Microservices’ you run into the following architectures…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FHIWcNwDgXFW5NzDCs6NlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*BicliTTLme6W9DBVjj8CjA.png" /><figcaption>Source: <a href="https://docs.microsoft.com/en-us/azure/architecture/guide/architecture-styles/microservices">https://docs.microsoft.com/en-us/azure/architecture/guide/architecture-styles/microservices</a></figcaption></figure><p>There is a central common element in all the architectures. Guess which, you are right the UI or Mobile client.</p><p>I think frontend should be a first class citizen in the Microservice architecture as all other backend services. Current technology trends make it available for smaller projects to separate UI code according to organizational or business needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*9-Erahbp26157pe2JijMtw.png" /><figcaption>(draft)</figcaption></figure><p>Micro Frontend is the method to partition UI just like we did with Microservices at the backend. Some benefits from the Microservice pattern are also true here.</p><ul><li>Technology agnostic</li><li>Team autonomy</li><li>Independent deployment</li><li>Isolation of failure</li></ul><p>There are the some questions I saw in many articles and some has answers some has not.</p><p>How MF modules communicate with each other?</p><p>It is advised to review every communication because just like in the Microservices too many communication might mean that the there is an unnecessary cut between Micro Frontend modules. The communication between MFs are APIs even if it is not formalized like REST between MS modules. As general guidelines:</p><ul><li>Do not share states ( like in MS, no shared database)</li><li>Styling should create only loose coupling</li><li>Test communication (eg.: apply Consumer Driven Contract Test concept)</li></ul><p>If communication is needed the following techniques are available, depending on your tech stack or use case.</p><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events">Events</a></li><li>Passing callback (eg.: React)</li><li>Route/URL (demo application <a href="https://martinfowler.com/articles/micro-frontends.html#TheExampleInDetail">here</a>)</li></ul><p>How MF modules communicate with MS backends?</p><p>Preferably MF is communicate with its own MS backend since the same full-stack teams develop both MF and MS. Although it is possible that cross-MS call is needed. Here comes the BFF (Backend for Frontend) architectural pattern into the picture. This pattern was introduced to cover use-cases where there are heterogenous clients are calling the service and depending the caller (or any other condition) response might differ (eg.: thumbnail size, media compression, etc.).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/0*JW1vcEA2ZSb1sSCa" /><figcaption>Source: <a href="https://martinfowler.com/articles/micro-frontends.html">https://martinfowler.com/articles/micro-frontends.html</a></figcaption></figure><p>How about authentication and authorization?</p><p>According to Cam Jackson’s <a href="https://martinfowler.com/articles/micro-frontends.html">article</a>, the authentication and other cross-cutting concerns are advised to be handled by the container (a distinguished UI component) code. Container is the UI module handles other concerns like</p><ul><li>Handle errors and isolate failures (eg.: React Suspense)</li><li>Calls MF modules with parameters (eg.: size, position, handlers, etc.)</li></ul><p>Container can also pass authentication token as parameter. Although I would like to leave this question open since I see other ways do authentication and still keep module autonomy (STS — Security Token Service).</p><p>Authorization is different. Since authorization depends on the domain (roles and resources are part of your domain) it can be handled by the MF and MS independently.</p><p>How about testing?</p><p>Each MF should have its own test package to cover its low-level business logic and rendering logic. High level functional tests just to validate that the page is assembled correctly (E2E).</p><p>Consumer Driven Contract testing can be useful here since consumer UI containers are important to be able load, register and handle MF module errors. Although, I would postpone this question too since introduce a CT level might be overwhelming and we will cross that bridge when we come to it.</p><p>I think Micro Frontend is an important topics to keep an eye on it. I intend to use it for PoCs as well as smaller projects so I can see the details clearly. Thank you for reading my story and I hope that soon I am going to come back with exact use cases and well-established best practices to share.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbe28c130504" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>