The strangler fig pattern, explained for business leaders

· Avishkar IT Services

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

  1. Map the system. Identify the features, the data each one uses and how they depend on each other.
  2. Add the routing layer. This might be a proxy, an API gateway or simple link changes in a web application.
  3. Pick the first slice. Choose something valuable but not too entangled, such as a report, a customer portal page or a single workflow.
  4. Build, test, switch. Build the new version, compare its behavior with the old one, then route traffic to it.
  5. 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.

FAQ

Questions, answered

How long does a strangler fig migration take?

It depends on the size of the system and how many pieces it is split into. The advantage is that value arrives with each piece, so the business does not wait for the end.

Does it cost more than a rewrite?

Running old and new side by side adds some work for routing and data sync. In exchange, the risk of a failed big-bang launch largely disappears, and the plan can change as you learn.

Running on software that time forgot?

Tell us what your system runs on and what worries you about it. We will reply with honest questions and a clear first step.

Start a conversation