Every organization eventually owns a system that is too important to switch off and too painful to keep changing. The tempting answer is a rewrite: start fresh, do it properly this time, switch over in one go.
It rarely works. A rewrite has to rediscover years of undocumented behaviour, while the old system keeps changing underneath it. The switch-over date slips, value arrives late or never, and the business carries two systems for longer than anyone planned.
There is a better way to modernize, and it works by never stopping the business.
Strangle, don’t replace
The strangler fig pattern, named after a vine that gradually grows around a tree, replaces a system one capability at a time. New functionality grows around the old system until the old parts can be retired. At every step the business keeps running, and every step delivers something useful.
How to do it
1. Map the system and find its seams. Understand which capabilities exist, who depends on them and where data flows. Look for natural boundaries: a reporting module, a pricing engine, a notification service.
2. Put an interface in front. Route traffic through a facade, such as an API gateway or a thin routing layer, so that callers stop depending on where a capability lives. This is the step that makes everything else possible.
3. Move one capability at a time. Choose capabilities where value is high and risk is contained. Build the new implementation behind the facade, and keep the old one running.
4. Compare before you switch. Run old and new side by side on real traffic, often in “shadow” mode where only the old system’s answer is used, and compare the results. Differences reveal undocumented behaviour before customers do.
5. Migrate data incrementally. Use change data capture or dual writes to keep stores in sync, migrate in slices, and validate continuously rather than in one heroic weekend.
6. Retire deliberately. When a capability has fully moved, remove the old code and infrastructure. Modernization that never deletes anything just creates a bigger system.
The safeguards that make it safe
- Observability first. Instrument the old system before changing anything, so you know what “normal” looks like.
- Contract tests at every boundary, so behaviour is pinned down even where documentation isn’t.
- Feature flags and instant rollback, so a bad cut-over costs minutes, not days.
- Clear success measures for each step: traffic on the new path, error rates, latency, deploy frequency.
Why it works
Incremental modernization turns one huge, risky bet into many small, reversible ones. Value arrives in weeks rather than years, teams learn as they go, and the business is never asked to stand still while its software catches up.
If you’re living with a system like this, our Engineering Health Check is a quick way to see where to start, or talk to us directly.