Micro Frontends - Not the Silver Bullet
summary
Argues micro frontends help independent deploys but are not a silver bullet and often create distributed monoliths; recommends splitting by page rather than tiny components, and shows concrete architectures: Module Federation (webpack/Angular), single-spa, and Project Mosaic (Skipper/Innkeeper/Taylor/Quilt/Shaker), plus nginx routing or iframes. Reports multiple-framework pages crashed mobile browsers in tests, urges shell-layer integration tests, centralized log aggregation (Splunk), cookie/localStorage auth, and warns shared libs become a “junk drawer.”
AI-written summary · about
chapters (30)
- 0:00Introduction to micro frontends
- 1:30What are micro frontends
- 3:58History of front-end architecture
- 5:22Benefits of micro frontends
- 8:51Drawbacks and challenges
- 12:25Code organization and shared libraries
- 15:12Buzzword hype and leadership pitfalls
- 17:46Testing complexity in micro frontends
- 19:52Technology independence myths
- 22:20When to consider micro frontends
- 22:42Tools for implementing micro frontends
- 27:16Single SPA and its advantages
- 28:00Using nginx for routing
- 29:01Iframes and security concerns
- 30:04Custom orchestration layers
- 30:45Testing strategies for micro frontends
- 32:08Error handling and logging
- 33:12Authentication across apps
- 35:22Custom libraries for shared code
- 36:07Q&A session introduction
- 36:48Mixing front-end frameworks
- 38:14Future of micro frontends
- 40:23Integration testing challenges
- 41:52Common misconceptions
- 43:16Outsourcing and micro frontends
- 44:21Bundle size and dependencies
- 46:49Custom orchestration costs
- 48:35Open source solutions sufficiency
- 49:21Code organization: mono vs multi repo
- 50:36Closing remarks and summary
