Big-bang rewrites fail more often than they succeed. The strangler fig pattern offers a safer path: grow the new system around the old one until the old one can be removed.
1. Put a facade in front
Route all traffic through a layer you control, such as an API gateway or proxy. This is what lets you redirect individual requests to new services later.
2. Pick the first slice carefully
Choose a domain that is valuable, reasonably isolated, and painful today. Avoid the most tangled core first; build confidence on something smaller.
3. Build, then run in parallel
Implement the slice in the new architecture. Run old and new side by side, comparing results on real traffic before switching over.
4. Switch with a flag
Move traffic gradually: internal users, then 5%, then 50%, then everyone. Keep the rollback path ready.
5. Remove the old code
This step is often skipped. Do not skip it. Every retired piece of legacy code reduces cost and risk.
6. Repeat
Each slice gets faster as patterns, tooling, and team confidence grow.
What makes it work
Executive patience, strong automated testing, and a clear map of the domains. With those in place, modernization becomes routine rather than heroic.
- Modernization
- Architecture
- Microservices