Skip to main content
Career Paths
Concepts
Micro Frontends
The Simplified Tech

Role-based learning paths to help you master cloud engineering with clarity and confidence.

Product

  • Career Paths
  • Interview Prep
  • Scenarios
  • AI Features
  • Cloud Comparison
  • Resume Builder
  • Pricing

Community

  • Join Discord

Account

  • Dashboard
  • Credits
  • Updates
  • Sign in
  • Sign up
  • Contact Support

Stay updated

Get the latest learning tips and updates. No spam, ever.

Terms of ServicePrivacy Policy

© 2026 TheSimplifiedTech. All rights reserved.

BackBack
Interactive Explainer

Micro-Frontends

Independent frontend apps composed at runtime.

🎯Key Takeaways
Independent apps composed at runtime.
Build-time vs runtime composition.
Use when many teams need autonomy.

Micro-Frontends

Independent frontend apps composed at runtime.

~2 min read
Be the first to complete!
What you'll learn
  • Independent apps composed at runtime.
  • Build-time vs runtime composition.
  • Use when many teams need autonomy.

Lesson outline

What are micro-frontends?

Multiple teams own different parts of the UI (e.g. header, search, checkout). Each part is a separate app: its own repo, build, and deploy. A shell (or host) composes them into one page at runtime.

Benefits: teams ship independently, use different stacks if needed, and scale ownership. Trade-offs: consistency (design, auth, routing) and operational complexity (versioning, contracts, performance).

Composition and integration

Build-time: merge multiple repos into one bundle at build; simpler integration but coupled releases and shared dependency versions.

Runtime: the shell loads fragments at runtime—via iframe, script tags, or Web Components. Each fragment is deployed independently. Module Federation (Webpack), single-spa, or a custom loader can orchestrate this. You need clear contracts (props, events, URLs) between shell and fragments.

Build-time

Repos merged into one bundle. Simpler; couples releases.

Runtime

Shell loads fragments (iframe, script, Web Components). Flexible; needs contracts.

Routing, state, and design

The shell usually owns the URL and top-level routing; it tells each fragment which “route” or context it is in. Shared state (user, theme) can be passed as props, via a small shared library, or through a global event bus—keep the surface small.

Design consistency is hard when each team owns its UI. Shared design tokens, a base component library, or a design system that all teams consume helps. Document patterns and avoid duplicate implementations of the same pattern.

When to use them

Micro-frontends make sense when you have many teams that need to ship their part of the product independently, or when you are gradually breaking a monolith into team-sized pieces. They are usually not worth it for small teams or simple products.

[Building Micro-Frontends](https://www.oreilly.com/library/view/building-micro-frontends/9781492082996/) (Luca Mezzalira, O'Reilly) covers integration patterns, deployment, and scaling frontend ownership.

Key takeaways

  • Independent apps composed at runtime.
  • Build-time vs runtime composition.
  • Use when many teams need autonomy.

From the books

Building Micro-Frontends

Luca Mezzalira, O'Reilly

Integration patterns, deployment, and scaling frontend ownership across teams.

Related concepts

Explore topics that connect to this one.

  • Component Architecture
  • SSR vs SSG vs CSR
  • Deployment strategies

Suggested next

Often learned after this topic.

SSR vs SSG vs CSR

Ready to see how this works in the cloud?

Switch to Career Paths for structured paths (e.g. Developer, DevOps) and provider-specific lessons.

View role-based paths

Sign in to track your progress and mark lessons complete.

Continue learning

SSR vs SSG vs CSR

Discussion

Questions? Discuss in the community or start a thread below.

Join Discord

In-app Q&A

Sign in to start or join a thread.