Lesson 7 of 9 · 27m
Independent Deployment That Is Actually Independent
Deployment independence requires versioned contracts, progressive rollout, runtime metadata, rollback plans, and discipline around shared runtime changes.
Teams often claim deployment independence because each micro-frontend has its own pipeline. Then a shell upgrade breaks every remote, or a remote deploy requires a simultaneous CDN invalidation and shared dependency bump. Independence is not the existence of separate pipelines. It is the ability for one team to deploy safely while everyone else does nothing.
That capability must be designed.
Version the contracts, not just the artifacts
Every interaction surface has a compatibility policy:
contracts:
routes: {prefix: /checkout, compatibility: additive-only}
events:
emits: {checkout.completed: v1}
consumes: {cart.updated: v2}
dependencies: {react: ^19.1.0, design-tokens: ^5.2.0}"Additive-only" is the default survival rule. You may add optional fields, routes, and event properties. You may not remove or reinterpret them inside a version.
Publish runtime metadata
The shell needs to know what it is loading and what compatibility envelope it expects:
{"name": "checkout", "version": "4.18.2",
"remoteEntry": "https://cdn.acme.io/checkout/4.18.2/remoteEntry.js",
"contract": {"events": {"consumes": {"cart.updated": [2]}}, "dependencies": {"react": "^19.1.0"}}}Whether this lives in a service registry, signed manifest, or edge configuration matters less than the fact that it is machine-readable and observable.
Progressive rollout beats big-bang federation
A deploy pipeline should support canary percentages and fast rollback:
deploy:
production:
steps:
- upload-artifact
- publish-manifest: {traffic: 5%}
- verify: {minutes: 20, checks: [error-rate, contract-violations, core-web-vitals]}
- publish-manifest: {traffic: 100%}Rollback must mean "serve the previous manifest," not "hope the old JavaScript is still in cache." Cache immutable hashed artifacts forever; treat the manifest as the mutable pointer.
Shared runtime upgrades are platform releases
Changing React, the router, the event bus, or design tokens is not just another remote deploy. It is a federation migration. You need version ranges, compatibility windows, dashboards for who has migrated, and a deadline. If the platform team cannot coordinate that, do not put the dependency in the singleton list.
Failure isolation is part of deployment
Every remote host should behave like this:
<ErrorBoundary fallback={<CheckoutUnavailable />}><Suspense fallback={<CheckoutSkeleton />}><CheckoutRemote /></Suspense></ErrorBoundary>A failed chunk load or incompatible remote should degrade the slice, not blank the page. The shell must also surface enough telemetry to know which remote version failed.
Field notes
- Independent deployment is proven by rollback and failure behavior, not by having separate repository pipelines.
- Never deploy a consumer that requires a producer version production does not serve yet.
- Cache immutable assets aggressively, but keep the routing or manifest layer instant to roll back.
- If every remote must redeploy after a design-system patch, the design system is a distributed monolith dependency.
Was this lesson helpful?