[{"data":1,"prerenderedAt":470},["ShallowReactive",2],{"navigation":3,"\u002Fen\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls":201},[4,84],{"title":5,"path":6,"stem":7,"children":8},"About","\u002Fen","en\u002F1.index",[9,10,78],{"title":5,"path":6,"stem":7},{"title":11,"path":12,"stem":13,"children":14},"Blog","\u002Fen\u002Farticles","en\u002F2.articles",[15],{"title":16,"path":17,"stem":18,"children":19,"page":33},"2026","\u002Fen\u002Farticles\u002F2026","en\u002Farticles\u002F2026",[20,34,43,56,65],{"title":21,"path":22,"stem":23,"children":24,"page":33},"April","\u002Fen\u002Farticles\u002F2026\u002Fapril","en\u002Farticles\u002F2026\u002Fapril",[25,29],{"title":26,"path":27,"stem":28},"Improving My App's Vibes with DESIGN.md","\u002Fen\u002Farticles\u002F2026\u002Fapril\u002Fexploring-llm-ui","en\u002Farticles\u002F2026\u002Fapril\u002Fexploring-llm-ui",{"title":30,"path":31,"stem":32},"How I Made My Fork Bilingual and Published It Right","\u002Fen\u002Farticles\u002F2026\u002Fapril\u002Fhow-i-made-my-fork-bilingual-and-published-it-right","en\u002Farticles\u002F2026\u002Fapril\u002Fhow-i-made-my-fork-bilingual-and-published-it-right",false,{"title":35,"path":36,"stem":37,"children":38,"page":33},"December","\u002Fen\u002Farticles\u002F2026\u002Fdecember","en\u002Farticles\u002F2026\u002Fdecember",[39],{"title":40,"path":41,"stem":42},"Common Mistakes When Building Microfrontends","\u002Fen\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls","en\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls",{"title":44,"path":45,"stem":46,"children":47,"page":33},"July","\u002Fen\u002Farticles\u002F2026\u002Fjuly","en\u002Farticles\u002F2026\u002Fjuly",[48,52],{"title":49,"path":50,"stem":51},"From Idea to MS Teams: Deploying an Agent","\u002Fen\u002Farticles\u002F2026\u002Fjuly\u002Ffrom-idea-to-ms-teams-agent","en\u002Farticles\u002F2026\u002Fjuly\u002Ffrom-idea-to-ms-teams-agent",{"title":53,"path":54,"stem":55},"Legally Spying on Your Competition is Possible","\u002Fen\u002Farticles\u002F2026\u002Fjuly\u002Fspying-on-your-rivals","en\u002Farticles\u002F2026\u002Fjuly\u002Fspying-on-your-rivals",{"title":57,"path":58,"stem":59,"children":60,"page":33},"May","\u002Fen\u002Farticles\u002F2026\u002Fmay","en\u002Farticles\u002F2026\u002Fmay",[61],{"title":62,"path":63,"stem":64},"Building an Agent's Personality Around the Customer Journey","\u002Fen\u002Farticles\u002F2026\u002Fmay\u002Fbuilding-agents-with-personality","en\u002Farticles\u002F2026\u002Fmay\u002Fbuilding-agents-with-personality",{"title":66,"path":67,"stem":68,"children":69,"page":33},"November","\u002Fen\u002Farticles\u002F2026\u002Fnovember","en\u002Farticles\u002F2026\u002Fnovember",[70,74],{"title":71,"path":72,"stem":73},"Reward Hacking: Did DeepSeek Solve My Bench?","\u002Fen\u002Farticles\u002F2026\u002Fnovember\u002Fdeepseek-found-the-answer-key","en\u002Farticles\u002F2026\u002Fnovember\u002Fdeepseek-found-the-answer-key",{"title":75,"path":76,"stem":77},"Simulating a Phishing Attack: AI vs Human","\u002Fen\u002Farticles\u002F2026\u002Fnovember\u002Fsimulating-phishing-attack-ai-vs-human","en\u002Farticles\u002F2026\u002Fnovember\u002Fsimulating-phishing-attack-ai-vs-human",{"title":79,"path":80,"stem":81,"children":82},"Index","\u002Fen\u002Farticles_index","en\u002F4.articles_index",[83],{"title":79,"path":80,"stem":81},{"title":85,"path":86,"stem":87,"children":88},"Acerca De","\u002Fes","es\u002F1.index",[89,90,195],{"title":85,"path":86,"stem":87},{"title":11,"path":91,"stem":92,"children":93},"\u002Fes\u002Farticles","es\u002F2.articles",[94,117,139],{"title":95,"path":96,"stem":97,"children":98,"page":33},"2024","\u002Fes\u002Farticles\u002F2024","es\u002Farticles\u002F2024",[99,108],{"title":100,"path":101,"stem":102,"children":103,"page":33},"Diciembre","\u002Fes\u002Farticles\u002F2024\u002Fdiciembre","es\u002Farticles\u002F2024\u002Fdiciembre",[104],{"title":105,"path":106,"stem":107},"Diciembre es un mes más","\u002Fes\u002Farticles\u002F2024\u002Fdiciembre\u002Fhaikus","es\u002Farticles\u002F2024\u002Fdiciembre\u002Fhaikus",{"title":109,"path":110,"stem":111,"children":112,"page":33},"Octubre","\u002Fes\u002Farticles\u002F2024\u002Foctubre","es\u002Farticles\u002F2024\u002Foctubre",[113],{"title":114,"path":115,"stem":116},"Viaje de regreso","\u002Fes\u002Farticles\u002F2024\u002Foctubre\u002Fhaikus","es\u002Farticles\u002F2024\u002Foctubre\u002Fhaikus",{"title":118,"path":119,"stem":120,"children":121,"page":33},"2025","\u002Fes\u002Farticles\u002F2025","es\u002Farticles\u002F2025",[122,131],{"title":123,"path":124,"stem":125,"children":126,"page":33},"Agosto","\u002Fes\u002Farticles\u002F2025\u002Fagosto","es\u002Farticles\u002F2025\u002Fagosto",[127],{"title":128,"path":129,"stem":130},"Hola Mundo","\u002Fes\u002Farticles\u002F2025\u002Fagosto\u002Fholamundo","es\u002Farticles\u002F2025\u002Fagosto\u002Fholamundo",{"title":109,"path":132,"stem":133,"children":134,"page":33},"\u002Fes\u002Farticles\u002F2025\u002Foctubre","es\u002Farticles\u002F2025\u002Foctubre",[135],{"title":136,"path":137,"stem":138},"El Antipatrón de la Red Veloz","\u002Fes\u002Farticles\u002F2025\u002Foctubre\u002Flatencia","es\u002Farticles\u002F2025\u002Foctubre\u002Flatencia",{"title":16,"path":140,"stem":141,"children":142,"page":33},"\u002Fes\u002Farticles\u002F2026","es\u002Farticles\u002F2026",[143,155,163,175,183],{"title":21,"path":144,"stem":145,"children":146,"page":33},"\u002Fes\u002Farticles\u002F2026\u002Fapril","es\u002Farticles\u002F2026\u002Fapril",[147,151],{"title":148,"path":149,"stem":150},"Mejorando las VIBES de mi aplicación con DESIGN.md","\u002Fes\u002Farticles\u002F2026\u002Fapril\u002Fexploring-llm-ui","es\u002Farticles\u002F2026\u002Fapril\u002Fexploring-llm-ui",{"title":152,"path":153,"stem":154},"Cómo volví mi fork multilenguaje y lo publiqué bien","\u002Fes\u002Farticles\u002F2026\u002Fapril\u002Fhow-i-made-my-fork-bilingual-and-published-it-right","es\u002Farticles\u002F2026\u002Fapril\u002Fhow-i-made-my-fork-bilingual-and-published-it-right",{"title":35,"path":156,"stem":157,"children":158,"page":33},"\u002Fes\u002Farticles\u002F2026\u002Fdecember","es\u002Farticles\u002F2026\u002Fdecember",[159],{"title":160,"path":161,"stem":162},"Errores Comunes al Desarrollar Microfrontends","\u002Fes\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls","es\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls",{"title":44,"path":164,"stem":165,"children":166,"page":33},"\u002Fes\u002Farticles\u002F2026\u002Fjuly","es\u002Farticles\u002F2026\u002Fjuly",[167,171],{"title":168,"path":169,"stem":170},"De Idea a Ms Teams: Desplegando un Agente","\u002Fes\u002Farticles\u002F2026\u002Fjuly\u002Ffrom-idea-to-ms-teams-agent","es\u002Farticles\u002F2026\u002Fjuly\u002Ffrom-idea-to-ms-teams-agent",{"title":172,"path":173,"stem":174},"Espiar a Tu Competencia de Manera Legal es Posible","\u002Fes\u002Farticles\u002F2026\u002Fjuly\u002Fspying-on-your-rivals","es\u002Farticles\u002F2026\u002Fjuly\u002Fspying-on-your-rivals",{"title":57,"path":176,"stem":177,"children":178,"page":33},"\u002Fes\u002Farticles\u002F2026\u002Fmay","es\u002Farticles\u002F2026\u002Fmay",[179],{"title":180,"path":181,"stem":182},"Construyendo la personalidad de un agente en base a la travesía del cliente","\u002Fes\u002Farticles\u002F2026\u002Fmay\u002Fbuilding-agents-with-personality","es\u002Farticles\u002F2026\u002Fmay\u002Fbuilding-agents-with-personality",{"title":66,"path":184,"stem":185,"children":186,"page":33},"\u002Fes\u002Farticles\u002F2026\u002Fnovember","es\u002Farticles\u002F2026\u002Fnovember",[187,191],{"title":188,"path":189,"stem":190},"Reward Hacking: ¿DeepSeek resolvió mi bench?","\u002Fes\u002Farticles\u002F2026\u002Fnovember\u002Fdeepseek-found-the-answer-key","es\u002Farticles\u002F2026\u002Fnovember\u002Fdeepseek-found-the-answer-key",{"title":192,"path":193,"stem":194},"Simulando un Ataque de Phishing: IA vs Humano","\u002Fes\u002Farticles\u002F2026\u002Fnovember\u002Fsimulating-phishing-attack-ai-vs-human","es\u002Farticles\u002F2026\u002Fnovember\u002Fsimulating-phishing-attack-ai-vs-human",{"title":196,"path":197,"stem":198,"children":199},"Lista","\u002Fes\u002Farticles_index","es\u002F3.articles_index",[200],{"title":196,"path":197,"stem":198},{"id":202,"title":40,"author":203,"badges":206,"body":207,"canonical":206,"cover":454,"date":455,"description":456,"extension":457,"layout":458,"meta":459,"navigation":465,"path":41,"seo":466,"stem":42,"__hash__":469},"content\u002Fen\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls.md",{"name":204,"url":205},"Ever Burga","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Feverburga\u002F",null,{"type":208,"value":209,"toc":444},"minimark",[210,214,231,240,243,246,259,265,287,292,304,307,310,317,320,323,328,335,346,349,355,358,361,367,370,373,379,385,391,397,400,403,409,412,415,418,421,424,430,433,436],[211,212,40],"h1",{"id":213},"common-mistakes-when-building-microfrontends",[215,216,219],"div",{"className":217},[218],"hero-breakout",[215,220,223],{"className":221},[222],"hero-breakout-inner",[224,225,226],"p",{},[227,228],"img",{"alt":229,"src":230,"title":229},"Shell and SPA microfrontends served from a CDN: each region of the screen comes from its own versioned path","\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls\u002F01-spa-shell-mfes-on-cdn.webp",[232,233,234],"blockquote",{},[224,235,236],{},[237,238,239],"em",{},"\"Code is a liability, not an asset.\"",[224,241,242],{},"Microfrontends had their flash of popularity more than 10 years ago. Now that they've stepped off the hype train, they haven't become as popular as their backend counterpart.",[224,244,245],{},"Still, they remain a relatively common choice in the corporate world. Possibly because of Conway's law and the culture these organizations adopt.",[247,248,249,253,256],"ul",{},[250,251,252],"li",{},"mfe: microfrontend",[250,254,255],{},"ms: microservice",[250,257,258],{},"shell: host mfe that acts as the orchestrator of the other mfes",[224,260,261],{},[262,263,264],"strong",{},"Table of Contents",[266,267,268,275,281],"ol",{},[250,269,270],{},[271,272,274],"a",{"href":273},"#when-are-remotes-loaded","Coupled Remote Loading",[250,276,277],{},[271,278,280],{"href":279},"#shared-model-corruption","Shared Model Corruption",[250,282,283],{},[271,284,286],{"href":285},"#conclusions","Conclusions",[288,289,291],"h2",{"id":290},"when-are-remotes-loaded","When are remotes loaded?",[224,293,294,295,299,300,303],{},"If we're talking about Angular and Native Federation, we have ",[296,297,298],"code",{},"federation.json"," files to register the remotes per mfe, and ",[296,301,302],{},"remoteEntry.json","\nto store the asset references.",[224,305,306],{},"You'll soon see this turns into a versioning and deployment management problem. This is where the classic blue-green and canary deployment options come in. Each with its own challenges.",[224,308,309],{},"(a) for example, we have a shell + SPA mfe application deployed to a CDN.",[224,311,312,316],{},[227,313],{"alt":314,"src":315,"title":314},"CDN deployment: v1.2 stacks on top of v1.1 and the browser falls back to v1.1 when v1.2 fails","\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls\u002F02-cdn-canary-coexist-fallback.webp","It works wonderfully. Except for some flickering that hurts CLS, but oh well, you add loading screens. Maybe SSG too for the bots looking for content.",[224,318,319],{},"Remotes are loaded from the browser and the requests go to the CDN.",[224,321,322],{},"Since keeping a version history costs nothing, retrying is straightforward. The browser remembers that on failure it should retry the last stable version. Either the browser or your CDN.",[324,325,327],"h3",{"id":326},"ssr","SSR",[224,329,330,331,334],{},"In another case, your solution might call for a server deployment.",[332,333],"br",{},"\nVarious reasons:",[247,336,337,340,343],{},[250,338,339],{},"an extra layer of isolation before reaching the backend",[250,341,342],{},"SEO+",[250,344,345],{},"session invalidation due to fraud\u002Ftimeout\u002Fautomatic detection",[224,347,348],{},"(b) you could deploy everything with SSR",[224,350,351],{},[227,352],{"alt":353,"src":354,"title":353},"Fully SSR architecture: the shell and each microfrontend are servers with their own replicas","\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls\u002F03-full-ssr-architecture.webp",[224,356,357],{},"And it would work... and you'd have an architecture that lets you deliver the solution.",[224,359,360],{},"But loading microfrontends involves more than your REST interfaces. Loading a remoteEntry.json triggers a cascade of asset requests.",[224,362,363],{},[227,364],{"alt":365,"src":366,"title":365},"Asset cascade: a staircase while figuring out what to load, then a burst of parallel chunks","\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls\u002F05-remote-entry-asset-cascade.webp",[224,368,369],{},"And what happens when we do a rollout? Since the Native Federation shell (at least in Angular) does a pre-load every time it starts, we end up with stale memory that invites failures when loading the canary mfe's assets.",[224,371,372],{},"Below are two almost comical failures, for blue-green and rollout deployments.",[224,374,375],{},[227,376],{"alt":377,"src":378,"title":377},"The SSR shell keeps the manifest in memory; after the rollout it still points to chunks that no longer exist","\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls\u002F06-ssr-stale-manifest-preload.webp",[224,380,381],{},[227,382],{"alt":383,"src":384,"title":383},"Retrying without affinity: every attempt is a lottery over which version answers the index and each chunk","\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls\u002F08-naive-retry-routing-lottery.webp",[224,386,387,388,390],{},"This is a good moment to ask yourself whether you really need SSR for the whole architecture. Or whether it's enough to have only the shell in SSR, so we go back to the CDN-friendly architecture; you'd just need to share a deploy identifier between the server and the browser, which is simple.",[332,389],{},"\n(b.1)",[224,392,393],{},[227,394],{"alt":395,"src":396,"title":395},"SSR shell with static microfrontends: the shell loads the microfrontend straight from the bucket to render, and the browser then requests that same version through the CDN","\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls\u002F07-ssr-shell-static-mfes-deploy-id.webp",[224,398,399],{},"And if you really need SSR in the mfes. I don't know, maybe for a video rendering or processing service that shouldn't affect the scaling of other screens, we can use sticky sessions. But this means keeping canary and stable coexisting for longer while the shell is redeployed.",[224,401,402],{},"(b.2)",[224,404,405],{},[227,406],{"alt":407,"src":408,"title":407},"Sticky sessions: v1.2 has its own replicas and a user's index and chunks always come from the same version","\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls\u002F09-sticky-requests-fix.webp",[224,410,411],{},"Honestly, not a very elegant solution. Maybe you could try storing the deployments in a CDN and also using it as a fallback. The infrastructure complexity grows.",[288,413,280],{"id":414},"shared-model-corruption",[224,416,417],{},"This is a Domain Driven Design classic.",[224,419,420],{},"When you decide to adopt an mfe architecture, you have to be aware that the boundaries between domains harden with much more force than just splitting domains into separate folders or repositories. Now we're even talking about a physical separation in the deployment environment.",[224,422,423],{},"That's how you can end up maintaining several implementations of the same class, thinking that, just like when you had a monolith, the cost of fixing the technical debt would be minimal.",[224,425,426],{},[227,427],{"alt":428,"src":429,"title":428},"A shared component owns the cart and only emits events; each microfrontend rebuilds its own copy its own way and they end up different","\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls\u002F10-shared-cart-shadow-copies.webp",[224,431,432],{},"It's worth saying that even using AI agents I find this task hard. The advantage of partitioning domains into separate mfes, which lets you put chains on the agents, makes them just as rigid when it comes to refactoring code across domain boundaries.",[288,434,286],{"id":435},"conclusions",[247,437,438,441],{},[250,439,440],{},"Choosing a software architecture with decoupled development means putting much more detail into upfront planning, since the cost of a mistake multiplies. Not even AI saves us.",[250,442,443],{},"If you're going to build mfes with SSR... please convince your team not to. Unless it's absolutely necessary. It multiplies the technical difficulty of keeping all the frontends aligned. Also keep in mind that debugging will happen on the server, and you'll have to maintain two sources of errors: the browser and the server.",{"title":445,"searchDepth":446,"depth":446,"links":447},"",2,[448,452,453],{"id":290,"depth":446,"text":291,"children":449},[450],{"id":326,"depth":451,"text":327},3,{"id":414,"depth":446,"text":280},{"id":435,"depth":446,"text":286},"\u002Farticles\u002F2026\u002Fdecember\u002Fcommon-mfe-pitfalls-cover.webp","2026-12-05T10:00:00.000Z","Building microfrontends means bringing in microservice patterns, and you inherit all their pros and cons","md","article",{"head":460},{"meta":461},[462],{"name":463,"content":464},"keywords","microfrontends, native federation, module federation, angular, ssr, cdn, canary deployment, blue-green, domain driven design",true,{"title":467,"description":468},"Common mistakes when building microfrontends","Remote loading, canary and blue-green deployments with SSR, and shared models that drift apart across microfrontends.","uLLBF9WyblYv_i9OBTQiaMvsT3M3h-22Mb1mnS8GLBk",1796519770538]