# “Micro Frontends”- You Keep Using That Word...

- Speaker: [Shem Magnezi](/wiki/speakers/shem-magnezi.md)
- Event: [Reversim Summit 2019](/wiki/years/2019.md)
- Video: https://www.youtube.com/watch?v=Q5p2L-gVR04
- Transcript: [/transcripts/2019/06-Q5p2L-gVR04.md](/transcripts/2019/06-Q5p2L-gVR04.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Frontend](/wiki/topics/frontend.md), [Software Engineering](/wiki/topics/software-engineering.md), [Microservices](/wiki/topics/microservices.md), [Scalability](/wiki/topics/scalability.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

This talk explores the architectural challenges of scaling frontend applications and evaluates the applicability of the micro frontends pattern. The speaker shares how a rapidly growing company experienced unexpected complexity as a simple dashboard evolved into a massive portal managed by multiple teams. The presentation compares frontend scaling with backend microservices, highlighting unique client-side constraints like bundle size, performance, and UI consistency. Finally, the speaker reviews six different technical approaches and various communication methods to help teams choose the right scaling strategy.

## Key points

- [2:33](https://www.youtube.com/watch?v=Q5p2L-gVR04&t=153s) Applications can quickly grow from a simple prototype into a massive portal with dozens of features as the organization scales.
- [7:40](https://www.youtube.com/watch?v=Q5p2L-gVR04&t=460s) While backend systems often solve scaling issues with microservices, frontend applications face unique challenges like bundle size, performance, and user experience consistency.
- [11:57](https://www.youtube.com/watch?v=Q5p2L-gVR04&t=717s) Decomposing an existing monolithic frontend into modular boundaries requires significant upfront effort and careful code organization.
- [17:39](https://www.youtube.com/watch?v=Q5p2L-gVR04&t=1059s) Publishing modules as separate NPM packages provides strict boundaries and independent release cycles at the cost of integration overhead.
- [20:45](https://www.youtube.com/watch?v=Q5p2L-gVR04&t=1245s) Monorepo tools like Lerna help manage multiple packages and dependencies efficiently while sharing common libraries like React.
- [23:09](https://www.youtube.com/watch?v=Q5p2L-gVR04&t=1389s) Alternative approaches include Web Components, routing-based splitting, iframes, and specialized meta-frameworks like single-spa.
- [28:32](https://www.youtube.com/watch?v=Q5p2L-gVR04&t=1712s) Inter-module communication can be achieved through shared state management, event emitters, or real-time databases depending on the architecture.
- [30:43](https://www.youtube.com/watch?v=Q5p2L-gVR04&t=1843s) Choosing a scaling strategy depends heavily on team structure, technology stack consistency, and organizational needs rather than just technical preferences.

## Takeaways

- Evaluate frontend scaling solutions early before architectural debt and chaos set in.
- Account for client-side constraints such as bundle size and initial load time when designing modular architectures.
- Match the micro frontend approach to your team's specific needs, framework consistency, and organizational structure.

## Questions this talk answers

- How do frontend micro-frontends differ from backend microservices in terms of performance and constraints?
- What are the pros and cons of using NPM packages versus a monorepo approach for frontend modularity?
- How can different framework components communicate effectively in a multi-framework frontend architecture?

## Technologies

React, Angular, Vue, Redux, MobX, Lerna, npm, Firebase

## Tags

frontend architecture, micro frontends, modularity, monorepo, scaling, web development
