Skip to content

Modernization

Modernizing a legacy system without a rewrite

Big-bang rewrites fail at a rate that should embarrass our industry. Here’s the incremental approach we use instead, and how to sequence it.

Published
April 21, 2026
Written by
David Taiwo
Length
5 min read

The system is fifteen years old. The vendor stopped supporting the runtime two years ago. Two people understand the billing module and one of them is retiring. Every change request takes four months. Everyone agrees it has to be replaced.

So someone proposes a rewrite, and the organization walks toward the single most reliable way to lose two years and a lot of money.

Why rewrites fail so consistently

The failure is structural, not a matter of execution quality.

The requirements are in the code. Fifteen years of regulatory changes, negotiated exceptions, and undocumented workarounds are encoded in behavior nobody has written down. Every rewrite discovers this in month eight, when a customer reports that something the old system did quietly is no longer happening.

The target keeps moving. The business does not pause while you rebuild. So you are rewriting a system that is still changing, and the delta grows faster than you close it.

There is no partial value. A rewrite delivers nothing until it delivers everything. Eighteen months in, with the budget half gone, there is nothing running, which is exactly when leadership changes, priorities shift, and the project is cancelled with no salvage.

Rollback is all-or-nothing. Cutover weekend arrives, something unforeseen breaks at 3am, and the decision is to push through or revert months of migration work.

Each of these is a consequence of the strategy itself. A better team executes the same strategy and fails somewhat later.

The alternative: strangle it

The strangler fig pattern, named for the plant that grows around a host tree until it can stand alone, inverts every one of those properties. Rather than building a replacement beside the legacy system and switching, you grow the new system around the old one, moving one capability at a time.

The sequence for each increment:

  1. Characterize the current behavior of one bounded capability.
  2. Seam it: put an interface in front of it that both old and new can sit behind.
  3. Build the replacement for that capability only.
  4. Shadow: run both, compare outputs, fix divergence, with the legacy still authoritative.
  5. Cut over just that capability, with the old path still present.
  6. Retire the legacy path once the new one has held for a defined period.

Each increment is independently valuable, independently reversible, and small enough to fit in a quarter.

Characterization is the part people skip

Before replacing anything you need to know what it currently does, not what the documentation claims, and not what the business believes.

The most effective technique we use is recording production traffic and replaying it. Capture real inputs and the legacy system’s real outputs over a representative period, including month-end and other cyclical peaks. That corpus becomes a regression suite defining “unchanged” in a way no specification document can.

It also routinely surfaces behavior nobody knew existed. On one logistics engagement, replay revealed that a rounding rule in the billing path had been quietly producing a small systematic discrepancy for years, which finance had unknowingly built downstream reconciliation around. A rewrite would have “fixed” it and broken the reconciliation. The strangler approach caught it in shadow mode, where it was a conversation rather than an incident.

The goal of the first increment is not to deliver new capability. It is to prove the seam works and the comparison is trustworthy.

Sequencing: what to move first

Order matters more than most teams expect. The heuristics we use:

Start where the seam is cleanest. The first increment should be the one with the fewest dependencies, not the one with the most business value. You are proving the machinery.

Move read paths before write paths. Reads are safely shadowable: you can run both and compare with no consequence. Writes require far more care.

Take the highest-change-rate capability early. Whatever the business asks to change most often will pay back the fastest once it lives in the new system.

Leave the hardest thing for when you are good at this. By increment six the team has a rhythm, the tooling is real, and the organization trusts the process. That is when to take on billing.

Do not migrate what you should delete. Every legacy system contains features with no remaining users. Instrument first. Retiring a capability is cheaper than porting it.

What this requires from the organization

The engineering pattern is well understood. The hard part is organizational.

Tolerance for temporary duplication. For a period there are two systems, two deployment paths, and a routing layer. This looks like a mess on a slide. It is the price of reversibility, and it is much cheaper than a failed rewrite.

Funding a programme, not a project. Increments run for a year or more. That needs a budget line that survives a planning cycle and a sponsor who understands why there is no single launch date.

Willingness to leave things alone. Some legacy components will still be running in five years, wrapped behind a stable interface, because replacing them was never worth it. That is a successful outcome, not an incomplete one.

What it looks like when it works

On the mainframe engagement referenced above (dispatch, tracking, and billing for a national operator) the migration ran fourteen months across nine increments. Two prior rewrite attempts at the same company had been cancelled.

The difference was not talent. It was that at every point during those fourteen months, the business was running on a working system, each increment could be reversed within an afternoon, and leadership could see delivered value every six to eight weeks rather than a progress bar toward a distant cutover.

Release cadence went from quarterly to daily. Infrastructure spend fell 41%. Unplanned downtime during the migration was zero.

None of that came from being clever. It came from refusing to take the all-or-nothing bet.

Where to start on Monday

If you are holding a system like this, three things are worth doing before any strategy is chosen:

  1. Instrument usage. Find out which capabilities are actually exercised, and by whom. You will be surprised.
  2. Record a traffic sample. Even without a migration plan, a replayable corpus of real production behavior is the most valuable artifact you can create.
  3. Find the cleanest seam. Identify the one capability with the fewest tendrils into the rest. That is your first increment, and proving it is a six-to-eight week exercise, not a two-year commitment.

That last point is the real argument for this approach. You can find out whether it works for your system this quarter, at a cost you can absorb if the answer is no.

From reading to doing

Facing this right now?

If this describes a problem on your desk, a short call is usually the fastest way to find out what your specific version of it requires.

We reply within one business day. No pitch decks, no discovery-call gauntlet.