The strangler fig is a tropical plant that starts life in the branches of a host tree. It sends roots down to the ground and slowly grows around the tree until it can stand on its own. The software architect Martin Fowler borrowed the image to describe a safer way to replace old systems, and the name stuck.
The idea in one paragraph
Instead of building a complete new system and switching over in one weekend, you put a thin layer in front of the old system. Users and other systems talk to that layer. Then you build the new system one feature at a time, and the layer sends each request either to the old system or to the new one. As more features move across, the old system does less and less, until it can be switched off.
Why this is safer
- Small releases. Each step is small enough to test properly and to roll back if something goes wrong.
- Value from the first step. The first migrated feature is in users’ hands within weeks or months, not after a multi-year rebuild.
- The business keeps running. There is no freeze on changes and no high-stakes cut-over weekend.
- The plan can change. If priorities shift, you can pause, reorder or stop with a working system at every point.
How a migration runs in practice
- Map the system. Identify the features, the data each one uses and how they depend on each other.
- Add the routing layer. This might be a proxy, an API gateway or simple link changes in a web application.
- Pick the first slice. Choose something valuable but not too entangled, such as a report, a customer portal page or a single workflow.
- Build, test, switch. Build the new version, compare its behavior with the old one, then route traffic to it.
- Repeat and retire. Move on to the next slice. When nothing is left, decommission the old system and archive its data.
Where it does not fit
The pattern needs a place to put the routing layer. Some closed desktop applications and tightly coupled databases make that hard, and a different approach, such as migrating the data layer first, may work better. That is a question for the assessment.
How we use it
Strangler fig is our default approach in application re-engineering and platform migration work. Our legacy system assessment tells you whether it fits your system and which slice to start with.