When a legacy system becomes hard to change, a full rewrite is tempting. It is also one of the riskiest projects in software: the old system keeps changing while the new one is built, and switch-over day concentrates every risk into a single weekend. The strangler fig pattern, named by Martin Fowler in 2004, offers a safer path.
How it works
Put a routing layer, such as an API gateway or proxy, in front of the legacy system. Build one capability as a new component and route the relevant requests to it. Repeat, capability by capability, until the old system handles nothing and can be switched off.
What to move first
- Capabilities that change often and slow the business down
- Areas with clear boundaries and few dependencies
- Something visible enough to prove the approach, but not the most critical flow
Handling the data
Data is usually the hardest part. Decide which system owns each piece of data at each stage, synchronise carefully during the transition and plan how to reconcile differences. Run old and new side by side and compare their results before switching traffic.
Our engineers and consultants write about what they see in real projects. Have a question about your own systems?






