Ask around, and you’ll hear this story at most growing companies. It starts with one frontend team and one codebase. Life is fine. Two years later, five teams share that repo. Releases ship on Friday, mostly because that’s the one afternoon all five leads are free. Then somebody nudges a margin on the checkout page and, for reasons no one can explain, reports fall over. That’s usually when micro frontends come up.
They might be the answer. Or they’re a costly detour. Honestly, it has less to do with your code than with how your teams are organised. Below, we walk through what micro frontends are, how the pieces connect, the rough cost, and a quick way to check whether you need them at all.
What is micro frontend architecture?
In micro frontend architecture, one web interface gets broken up into a handful of smaller apps. On an ecommerce site, search could be one app. Checkout could be another, and the account area a third. Every app gets a team and a repo of its own, and that team pushes to production whenever it’s ready, no permission slip needed. A thin app shell loads everything into one page. To customers, it’s still one website.
Sound like microservices? Pretty much. Same thinking, just moved to the browser. ThoughtWorks named it on its Technology Radar in 2016. For a few years, mostly big tech companies used it. Webpack 5 changed that in 2020 by adding Module Federation. Setup became much easier, and enterprise teams took notice.
One warning before we go on. Micro frontends won’t make your pages faster. They won’t fix flaky tests either. Rushed, they make both problems worse.
How does micro frontend architecture work?
Think of it in three layers.
First comes the app shell, which the browser grabs before anything else. Its job is deliberately dull. It draws the frame, signs people in, and decides who handles which URL, so /shop lands with the catalogue team while /account goes to the account folks. Keep business logic out of the shell. Otherwise, six months later, you’ve rebuilt the monolith under a new name.
Below the shell are the team apps, often called remotes. Each remote owns one business area. The checkout remote holds checkout’s code, tests, and pipeline. Nothing else.
At the base is the shared foundation. Think design system first, so a button in search doesn’t look like a distant cousin of the one in checkout. Login, analytics, and error logging live here too. Without it, five teams will build five slightly different versions of your brand.
Apps shouldn’t reach into each other’s code. Say checkout needs the cart contents. It should receive a cart ID through the URL or a browser event. Then it calls the cart API itself.
Micro frontend integration patterns: Module Federation, Single-SPA and more
Where do the pieces actually get stitched together? In the browser, on your server, or out at the CDN edge. Each comes with trade-offs, summed up below.
| Pattern | Joined where | Use it when |
|---|---|---|
| Module Federation | Browser | You’re on React, Angular, or Vue and want teams to deploy independently |
| Single-SPA | Browser | You’re migrating off a legacy app and need old and new to run side by side |
| Web Components | Browser | You need small widgets that work in any framework |
| Server-side composition | Origin server | SEO and first-load speed matter a lot |
| Edge-side includes | CDN | You run a high-traffic store or media site |
For most enterprise teams, Module Federation is the best place to start. The host setup is shorter than you might expect:
new ModuleFederationPlugin({
name: 'shell',
remotes: { checkout: 'checkout@https://cdn.example.com/checkout/remoteEntry.js' },
shared: { react: { singleton: true }, 'react-dom': { singleton: true } },
});
Don’t forget the singleton setting. Without it, each remote may bundle its own copy of React. That often shows up as confusing hook errors in production. Also wrap each remote in an error boundary. That way, a checkout outage shows a polite “try again” note, not a white page.
Micro frontends vs monolith: is there a middle ground?
In a classic monolith, everything rides on a single app, build and release. For a single team, that’s cheap and simple. Trouble starts when three or four teams share the same release. Each team ends up waiting on the others.
There’s a middle option people often forget: the modular monolith. It’s still one app with one deploy. But the code is split into modules, and each module has an owner. Tools like Nx can block the build if someone crosses a boundary. You get clear ownership without the runtime complexity.
Micro frontends go one step further and give each team its own deployment. That’s the only thing a modular monolith can’t give you. So the honest test is simple: is the shared release itself what’s hurting you? If not, stop at the modular monolith.
Micro frontends and microservices aren’t a package deal. Many companies run dozens of backend services behind one frontend. Still, both work best when split along the same lines. That way, the payments team owns both the payments screens and the payments API.
Benefits of micro frontends for enterprise applications
The biggest win is less waiting. The checkout team can ship a fix on Tuesday without asking anyone else. Releases get smaller, and smaller releases break less often. Ownership gets clearer too. When search has a bug, everyone knows whose problem it is.
Legacy migration is the underrated benefit. Stuck on an old AngularJS or jQuery app? Micro frontends let you replace it one screen at a time. The business keeps running the whole time. For many companies, that alone justifies the effort.
Well-known companies have taken this route too. Zalando built its storefront on server-side composition. IKEA used simple server and edge includes. DAZN split its app by business domain. Spotify’s old desktop app ran team features in separate iframes, then later merged them back. That’s worth remembering. You can always combine apps again.
When should an enterprise adopt micro frontends?
Here’s a quick test. Count the teams pushing code to your frontend. Is it four or more? Now look back over the last two quarters. Did a shared release ever delay a launch? If both answers are yes, a pilot is worth considering.
Hold off if one or two teams run the whole frontend. The same goes for early-stage products still finding their market. If your releases are already fast, you don’t need this. And if your CI/CD or tests are shaky, fix those first. Micro frontends multiply pipelines, and weak pipelines multiply problems.
Size alone isn’t a reason to switch. A large codebase with one well-run team can stay a monolith for years.
How much does micro frontend architecture cost?
Costs depend a lot on the state of your current code. Treat these as rough starting points for an enterprise micro frontend project:
| Scope | Budget (USD) | Timeline |
|---|---|---|
| Proof of concept: shell plus one or two apps | $15,000 to $30,000 | 4 to 8 weeks |
| Mid-size rollout: several apps, design system, separate pipelines | $30,000 to $90,000 | 3 to 5 months |
| Full migration off a legacy frontend | $90,000 to $200,000+ | 6 to 12 months |
Funny thing about the budget: the apps themselves are the cheap part. The money goes into plumbing, like the shell, design system, pipelines, contract tests, and monitoring. Keeping shared libraries in sync adds an ongoing cost too.
Costs usually grow through sprawl. What keeps them down? One framework, no exceptions. A small platform team that owns the build tooling. A healthy reluctance to spin up new apps, since every one brings another pipeline to babysit. And an honest look at what slow releases cost you right now. If that figure’s small, stay with the monolith.
How to implement micro frontends: a step-by-step rollout
Step 1: Measure your baseline
This step has nothing to do with code. Note how many releases you do a month, how long code takes to go from commit to live, and how often a release goes wrong. Half a year on, you’ll want those figures to show leadership the migration was worth it.
Step 2: Define your micro frontend boundaries
Draw boundaries around business areas, not screens. Catalogue, cart, checkout, and account make good micro frontend boundaries. The header doesn’t. It belongs in the shell or the design system.
Step 3: Build the shared foundation
Shell, design system, single sign-on, a pipeline template people can copy. Get these in place before any team splits off.
Step 4: Run a pilot
Pick an area where mistakes are cheap; plenty of teams start with account settings. Give it two or three months running solo. Numbers better than your baseline? Move the next area across. Worse? Dig into why before touching anything else.
Step 5: Watch for common micro frontend problems
Some headaches show up almost every time:
- Bundles balloon when each app drags in its own libraries. Share the heavy ones and cap each app’s size.
- CSS from one team bleeds into another’s screens unless it’s scoped.
- Bugs hopping across three apps are a nightmare to chase without a shared request ID in the logs.
- Pages rendered only in the browser can quietly hurt your SEO. Server-side or edge composition solves this.
Micro frontends FAQs
What is micro frontend architecture?
It’s a way to split one web app into smaller apps. Each team owns one part, like search or checkout. An app shell joins the parts together. Users still see one website.
What is the difference between micro frontends and microservices?
Microservices split the backend. Micro frontends split the user interface. You can use one without the other. They work best when both follow the same business areas.
Is Module Federation the same as micro frontends?
No. Micro frontends are the approach. Module Federation is one tool for building them. Single-SPA and Web Components are other options.
Do micro frontends affect SEO and performance?
They can. Pages slow down if every app ships its own libraries. Content that only renders client-side can also slip past search engines. Sharing libraries and rendering key pages on the server takes care of most of it.
How much does micro frontend architecture cost?
Expect roughly $15,000 to $30,000 for a small pilot. Full enterprise migrations can run past $200,000, depending on how messy the existing code is, how many teams are involved, and how mature your DevOps is already.
How long does it take to implement micro frontends?
A pilot takes 4 to 8 weeks. A complete migration is more like 6 to 12 months, usually done one business area at a time.
When should an enterprise avoid micro frontends?
Avoid them if one or two teams own the whole frontend. Same if releases already ship quickly. You’ll get more out of a modular monolith.
Is micro frontend architecture right for your enterprise?
Micro frontends fix a team problem: too many teams waiting on one release. If you have that problem, they can speed up delivery a lot. Without that queue, you’re mostly buying infrastructure you don’t need. Our suggestion: get a modular monolith in place first, and only pilot micro frontends if you’re still hitting walls after that. Then let your release data guide the next step.
Want a second opinion first? The Fusion Codes team can review your frontend. We’ll tell you plainly whether micro frontend architecture is a good fit. Book a free consultation, or browse our recent projects first.


