Modernizing without a rewrite: the strangler pattern in practice

How to replace a legacy system one capability at a time while it keeps running, and why it beats the big-bang rewrite almost every time.

Modernization 7 min read

The big-bang rewrite is one of the most tempting and most dangerous ideas in software. Build a complete replacement, switch over on a single date, and leave the old system behind. In practice, the replacement takes longer than planned, the old system keeps changing underneath it, and all the risk arrives on one day.

The strangler pattern offers a different route. Named after vines that gradually grow around a tree, it replaces a system piece by piece while the original keeps running.

How it works

  1. Introduce a seam. Put a routing layer, such as an API gateway, proxy or facade, in front of the legacy system so requests can be directed to either the old or a new implementation.
  2. Pick a capability. Choose one well-bounded piece of functionality to replace first.
  3. Build the replacement. Implement that capability in the new system, tested against the old system’s actual behavior.
  4. Shift traffic gradually. Route a small share of requests to the new implementation, monitor, and increase over time.
  5. Retire the old piece. Once the new capability has proven itself, switch off and remove the old code.
  6. Repeat. Each cycle makes the legacy system smaller.

Choosing the first capability

A good first candidate is:

  • Well bounded, with clear inputs and outputs
  • Valuable, so success is visible to the business
  • Not the most complex, so the team can learn the pattern safely
  • Frequently changed, so moving it removes a real pain point

Avoid starting with the core of the system. Start at the edges and work inward.

The data problem

Code is the easier half. Data is harder, because the old and new implementations may both need it during the transition. Common approaches include:

  • Shared database for a period, accepting some coupling while capabilities move
  • Synchronization, where changes in one store are replicated to the other
  • Ownership transfer, where the new service becomes the source of truth for its data and the legacy system reads from it

Whichever approach you use, reconcile outputs continuously so differences are found early.

Where AI helps

AI-assisted analysis makes the hardest part of the strangler pattern, understanding what the legacy system actually does, much faster. It can summarize modules, trace data flows and draft characterization tests. Engineers still verify every finding and make every design decision.

Why it works

  • Risk is spread across many small cutovers rather than one large one.
  • Value arrives early, with each retired capability.
  • You can stop or change direction at any point without losing everything.
  • The team learns as it goes, getting faster with each capability.

The goal is not to build a new system. The goal is to switch off the old one safely. Measure progress by what you have retired.

Tell us what you are trying to change

Share the system, the deadline and what is in the way. An engineer will reply with questions or a short proposal for next steps.

[email protected] Cary, North Carolina