Advanced Topic 50 of 51 Web Development
Micro-Frontends
Splitting a frontend into independently delivered pieces.
How it works
Micro-frontends extend microservice ideas to the user interface: a web application is composed of independently developed, tested and deployed front-end pieces, each owned by a different team and possibly using different frameworks. Composition happens at build time, on the server, via iframes, through Web Components or at runtime with module federation, with shared design systems and contracts for navigation, state and events.
Step-by-step walkthrough
- A shell page composes independent frontends.
- Each team builds and deploys its own feature.
- The shell loads them at runtime, for example with module federation.
- The shell loads Team B's feature too.
- A shared design system keeps the look consistent.
Where it is used
Large organizations with many teams working on one product, such as e-commerce sites with separate catalog, cart and checkout teams, use micro-frontends to scale development and release independently.
Common pitfall
Duplicated dependencies increase bundle size, inconsistent look and feel can creep in, and cross-team coordination for shared state and routing is complex. Performance suffers when many apps load on one page. They add operational overhead and are unnecessary for small teams. Define strong boundaries, shared tokens and an integration contract before adopting.
Where it fits in the course
Micro-Frontends is topic 50 of 51 in Web Development, rated Advanced. It follows Canvas and WebGL. The next topic is Edge Computing for Web.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Web Development quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Web Development quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Micro-Frontends?
Where do people use Micro-Frontends?
What is the most common mistake with Micro-Frontends?
What should I learn before this topic?
How can I practice it?
Is Micro-Frontends hard to learn?
How long does it take to learn Micro-Frontends?
Which topics are related to Micro-Frontends?
What should I study after Micro-Frontends?
Related topics
- Canvas and WebGL (Web Development)
- Edge Computing for Web (Web Development)
- Web Components (Web Development)
- WebAssembly (Web Development)