Skip to content

Lesson 9 of 9 · 25m

Migrating Incrementally and Knowing When to Stop

Strangler patterns, platform ownership, design consistency, and the failure modes that mean you should simplify rather than federate further.

Successful micro-frontend programs rarely start by rewriting the shell and every application. They start by carving out one high-friction slice behind a stable route. The migration pattern is the same strangler approach backend teams use: put a facade in front, move one capability, prove the operational model, then decide whether the next slice is worth it.

Start with a painful, bounded slice

Good first candidates have clear ownership, meaningful deploy frequency, and limited coupling: checkout, account settings, search. Bad first candidates are global navigation, design-system primitives, or a widget embedded on every page. You want an honest test of autonomy, not a distributed rewrite of the shared foundation.

A typical edge routing configuration:

location /checkout/ { proxy_pass https://checkout-ui.acme.internal/; }
location / { proxy_pass https://legacy-spa.acme.internal/; }

That simple split may outperform a sophisticated runtime federation because it establishes ownership and deployment independence with fewer moving parts.

Someone must own the platform

Federation does not eliminate shared frontend work; it concentrates it. A frontend platform group usually owns:

  • shell boot, routing contracts, dependency and singleton policy
  • observability conventions, CI templates, deployment registry
  • accessibility and performance baselines, shared-runtime migrations

Without that ownership, every team invents private solutions and the user experience fractures. With too much control, the platform becomes a bottleneck. The job is to provide paved roads, not approve every feature.

Design consistency needs a system, not screenshots

Independent teams can still ship one coherent product if they share tokens, primitives, accessibility rules, and interaction patterns:

:root { --acme-color-surface: #ffffff; --acme-color-text-primary: #17211b;
        --acme-space-3: 12px; --acme-radius-control: 8px; }

Share the minimum stable language. Do not force every implementation detail into the same library; that turns every visual refinement into a federation-wide migration.

Failure modes that mean stop

Simplify when you see these patterns:

  • every feature requires coordinated releases across remotes
  • teams debug production by guessing which version combinations are live
  • shared dependencies consume more time than independent deployment saves
  • users can tell which team owns each rectangle because the experience changes
  • a two-team product has eight micro-frontends and no platform owner

The corrective move may be build-time composition, fewer remotes, or returning to a modular monolith. That is not failure; it is architecture responding to evidence.

The sober end state

A healthy federation is boring. Teams deploy independently, contracts change additively, incidents degrade locally, and users never notice the organizational chart. If the architecture itself is the most interesting thing about the product, something has gone wrong.

Field notes

  • Migrate one route or capability at a time and measure whether coordination actually decreases.
  • Path-based reverse-proxy composition is a legitimate micro-frontend architecture; runtime JavaScript federation is not mandatory.
  • Platform teams should own contracts and paved roads, not become a centralized frontend approval board.
  • Modular monoliths remain the default answer for most products. Micro-frontends are for the minority where organizational scaling pain is real and persistent.

Was this lesson helpful?

Sign in to rate