Every migration plan contains one honest sentence and a lot of scaffolding around it. The honest sentence is usually: we do not fully know what depends on this. Most of the risk in a large migration comes from that gap, not from the technology on either side of it.
Migrate the boring things first
The instinct is to prove the hard case early. We do the opposite, and move the least interesting workloads first: internal reporting, batch exports, the document store. Not because they matter least, but because they exercise every piece of the new environment while nobody's payment is in flight.
By the time the first workload that matters moves, the network path, the identity federation, the observability pipeline and the deployment process have all been used in anger for six weeks. The scary migration then only tests one new thing instead of nine.
The strangler pattern, applied to a payment path
Payment flows do not get a cutover window. They get a dial. We put a routing layer in front of the service, moved traffic in fractions, and held each fraction long enough to see a full business cycle before turning it further.
The shadow comparison is the part that earns its cost. For the whole ramp, every request ran against both implementations and the responses were diffed offline. Three genuine behavioural differences surfaced that way, all in rounding and currency edge cases, and all found before a customer met them.
A migration you can stop at any percentage is not really a migration. It is a series of small, reversible decisions that happen to end somewhere new.
The rollback you hope not to use
We kept the legacy path warm and receiving shadow traffic for a full week after 100%. It cost real money to run two systems for that week, and it was the cheapest insurance in the programme. The rules we hold to:
- Rollback must be a config change, never a redeploy.
- Anyone on the on-call rota can trigger it without waking an architect.
- Data written during the ramp must be readable by both systems, which usually means no schema change ships in the same window as the traffic move.
That last rule is the one teams break most often, and it is the one that turns a reversible migration into a one-way door.