The Legacy Migration Playbook: Rewrite Less, Strangle More
Migrating a legacy system without a big bang — the strangler pattern and incremental rewrites.
The big rewrite is a trap
Every developer has fantasized about rewriting the legacy system from scratch. It's almost always a mistake: you throw away years of hard-won bug fixes and edge cases, and you ship nothing for months. Meanwhile the old system keeps serving users and accumulating the changes your rewrite is ignoring.
The strangler pattern is the antidote: build the new system beside the old one, route traffic to it piece by piece, and strangle the old system by shrinking its surface until it's gone.
Find the seams first
Migrations succeed or fail on where you cut. Find natural seams — a feature, a route, a domain boundary — and migrate one seam at a time. Each migration should be independently shippable and reversible. If you can't ship a piece until the whole thing is done, you've picked the wrong seam.
I've used this exact approach to move a whole estate from legacy frameworks to a modern architecture with zero downtime: one application at a time, each one fully working at every step.
Measure progress by surface area, not months
Track the percentage of traffic served by the new system and the features still on the old one. The migration is done when the old system's last route returns 404 — and not a day before the metrics agree.