<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-micro-frontend-architecture-handbook-ny57eyzsg" -->

---
title: The Micro-Frontend Architecture Handbook | daily.dev
description: A comprehensive guide covering four main approaches to micro frontend architecture: iframes with cross-window messaging, Web Components with Shadow DOM,...
canonical: https://daily.dev/posts/the-micro-frontend-architecture-handbook-ny57eyzsg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The Micro-Frontend Architecture Handbook | daily.dev
og:description: A comprehensive guide covering four main approaches to micro frontend architecture: iframes with cross-window messaging, Web Components with Shadow DOM,...
og:url: https://daily.dev/posts/the-micro-frontend-architecture-handbook-ny57eyzsg
og:image: https://api.daily.dev/og/posts/NY57EYZSG.png
og:image:alt: The Micro-Frontend Architecture Handbook
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The Micro-Frontend Architecture Handbook

**[freeCodeCamp](https://daily.dev/sources/freecodecamp)** · [@codelikeandrew](https://daily.dev/codelikeandrew) · 33 min read · 434 upvotes · 9 comments

## Summary

A comprehensive guide covering four main approaches to micro frontend architecture: iframes with cross-window messaging, Web Components with Shadow DOM, single-spa for orchestrating multiple SPAs, and Module Federation for runtime code sharing. Each method is explained with practical code examples, pros/cons analysis, and real-world use cases. The guide also covers additional tools like Piral, Luigi, and Import Maps, helping developers choose the right approach based on team structure, technical requirements, and deployment needs.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.freecodecamp.org/news/complete-micro-frontends-guide/>

## Community discussion

Top comments from developers on daily.dev.

**@codelikeandrew** · 6 upvotes

> Hi everyone! 👋🏼 🤓 Just published this deep dive on **Micro-Frontend Architecture** — and I’d love to hear from you! 💚
>
> Which micro-frontend approach do you or your team use in your projects — **iframes**, **Web Components**, **Single-SPA**, **Module Federation**, **Piral**, **Lougi** … or something completely different?
>
> I’ve built it entirely from my hands-on experience in **Software Development** and **Solution Architecture** — collaborating with diverse teams and tech stacks. But as we all know, the frontend landscape keeps evolving rapidly.
>
> So, I'd love to learn from you! **Drop your...

**@sergeyvolkov** · 2 upvotes

> Macro* frontends

**@bappy\_here** · 1 upvotes

> very informative read, thanks for sharing....
>
> a question, if i may....
>
> Method #4: Module Federation - Sharing Code at Runtime
>
> * both product-app and host-app will e in same project structure or they will run from different project?
>
> thanks and happy coding :)

**@clx** · 1 upvotes

> Great overview of modern strategies and point on. I like examples and list of tradeoffs for each approach. Unfortunately, we can rarely find a company using micro-frontends in production. Lack of expertise or cost of transition from monoliths are over estimated compared to long term gains. Hope adoption gonna get traction soon , giving teams more freedom and ownership.

**@sudouken** · 1 upvotes

> Indeed, NOTHING in life is without trade-offs. Everything has a cost, and at least an opportunity cost. There is no "best" or one-size-fits-all solution for anything at all.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#career](https://daily.dev/tags/career), [#webpack](https://daily.dev/tags/webpack), [#web-components](https://daily.dev/tags/web-components)

[View this post on daily.dev](https://daily.dev/posts/the-micro-frontend-architecture-handbook-ny57eyzsg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The Micro-Frontend Architecture Handbook","url":"https://daily.dev/posts/the-micro-frontend-architecture-handbook-ny57eyzsg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-micro-frontend-architecture-handbook-ny57eyzsg"},"datePublished":"2025-06-06T14:33:10.290Z","dateModified":"2025-06-07T11:00:09.404Z","description":"A comprehensive guide covering four main approaches to micro frontend architecture: iframes with cross-window messaging, Web Components with Shadow DOM,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5924fb67df822f6daea868221e6abc6b?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5924fb67df822f6daea868221e6abc6b?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"freeCodeCamp","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Andrew Maksimchenko","url":"https://daily.dev/codelikeandrew","image":"https://media.daily.dev/image/upload/s--fe-t2KZn--/f_auto/v1745772076/avatars/avatar_z2qoMJyLI0Hy0pgy7OpDI","description":"Certified IT Jury, Lead Developer, Architect, Course Creator, Engineering Manager, Blogger, Mentor.","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":140}},"commentCount":9,"discussionUrl":"https://daily.dev/posts/the-micro-frontend-architecture-handbook-ny57eyzsg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":434},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":9}],"keywords":"webdev,career,webpack,web-components","timeRequired":"PT33M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"freeCodeCamp","item":"https://daily.dev/sources/freecodecamp"},{"@type":"ListItem","position":3,"name":"The Micro-Frontend Architecture Handbook"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/the-micro-frontend-architecture-handbook-ny57eyzsg","comment":[{"@type":"Comment","text":"Hi everyone! 👋🏼 🤓 Just published this deep dive on Micro-Frontend Architecture — and I’d love to hear from you! 💚\nWhich micro-frontend approach do you or your team use in your projects — iframes, Web Components, Single-SPA, Module Federation, Piral, Lougi … or something completely different?\nI’ve built it entirely from my hands-on experience in Software Development and Solution Architecture — collaborating with diverse teams and tech stacks. But as we all know, the frontend landscape keeps evolving rapidly.\nSo, I’d love to learn from you! Drop your thoughts below 👇 Let me and others know what’s worked (or didn’t!) for your team — it’s genuinely interesting how you tackled micro frontends in the wild! Let’s share knowledge and discuss!","datePublished":"2025-06-06T21:03:51.988Z","url":"https://daily.dev/posts/NY57EYZSG#c-iXusgfcXV","author":{"@type":"Person","name":"Andrew Maksimchenko","url":"https://daily.dev/codelikeandrew","image":"https://media.daily.dev/image/upload/s--fe-t2KZn--/f_auto/v1745772076/avatars/avatar_z2qoMJyLI0Hy0pgy7OpDI"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6}},{"@type":"Comment","text":"Macro* frontends","datePublished":"2025-06-25T08:01:14.212Z","url":"https://daily.dev/posts/NY57EYZSG#c-tQ8GvJHOH","author":{"@type":"Person","name":"Sergey Volkov","url":"https://daily.dev/sergeyvolkov","image":"https://media.daily.dev/image/upload/s--5NrbX2x0--/f_auto/v1758869632/avatars/avatar_16HM0snNB2EsL20uW896e?_a=BAMAK+ZW0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"very informative read, thanks for sharing…\na question, if i may…\nMethod #4: Module Federation - Sharing Code at Runtime\n\nboth product-app and host-app will e in same project structure or they will run from different project?\n\nthanks and happy coding :)","datePublished":"2025-06-27T07:07:09.508Z","url":"https://daily.dev/posts/NY57EYZSG#c-W9U9alssx","author":{"@type":"Person","name":"A. B.","url":"https://daily.dev/bappy_here","image":"https://avatars.githubusercontent.com/u/19854521?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Great overview of modern strategies and point on. I like examples and list of tradeoffs for each approach. Unfortunately, we can rarely find a company using micro-frontends in production. Lack of expertise or cost of transition from monoliths are over estimated compared to long term gains. Hope adoption gonna get traction soon , giving teams more freedom and ownership.","datePublished":"2025-07-13T12:56:58.731Z","url":"https://daily.dev/posts/NY57EYZSG#c-tppsr8G62","author":{"@type":"Person","name":"clx","url":"https://daily.dev/clx","image":"https://media.daily.dev/image/upload/s--Mkkvkag8--/f_auto/v1751188138/avatars/avatar_5vXBNAjzbZrl3T40Y4VMb?_a=BAMClqZW0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Indeed, NOTHING in life is without trade-offs. Everything has a cost, and at least an opportunity cost. There is no “best” or one-size-fits-all solution for anything at all.","datePublished":"2025-06-28T18:19:15.071Z","url":"https://daily.dev/posts/NY57EYZSG#c-V8Uo3jpiF","author":{"@type":"Person","name":"Matthew","url":"https://daily.dev/sudouken","image":"https://media.daily.dev/image/upload/s--jRwVjerf--/f_auto/v1755725028/avatars/avatar_l1V0jO5VncYwbcQDE0JQ1?_a=BAMClqZW0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

