Legacy modernisation

Modernising a legacy system without a big-bang rewrite

Why full rewrites so often fail, and how the strangler fig approach replaces an old system piece by piece while the business keeps running.

Almost every established company runs at least one system that everyone is a little afraid of. It works, it carries real revenue, and nobody wants to touch it. It may be a monolith from the early 2010s, a desktop application on an ageing framework, or a set of scripts and stored procedures that grew around a database. Sooner or later someone proposes the obvious solution: rewrite it from scratch.

Sometimes that is right. More often it is the most expensive way to arrive, two years later, at a new system that does less than the old one. This article explains why, and describes the incremental approach we prefer.

Why big-bang rewrites fail

A full rewrite looks clean on paper. In practice it runs into the same problems again and again:

  • The old system is the specification. Years of fixes, edge cases and business rules live only in the code. A rewrite has to rediscover all of them, usually by getting them wrong in production.
  • Two systems, one team. While the new system is built, the old one still needs fixes and features. Either the rewrite slows down or the old system freezes, and the business notices both.
  • Value arrives at the very end. Nothing reaches users until the switch-over, so the project carries all of its risk until the last day, which is also the day with the least room to fix anything.
  • The target moves. By the time the rewrite is ready, the business has changed and the new system is already behind.

The strangler fig approach

The alternative is named after a plant that grows around a host tree and slowly replaces it. Instead of replacing the system in one step, you put a layer in front of it and move functionality piece by piece into new components. Each step is small, goes to production on its own and can be rolled back.

In practice it looks like this:

  1. Put a routing layer in front. An API gateway, reverse proxy or facade receives all traffic and, at first, sends everything to the old system.
  2. Pick a slice. Choose one capability with clear boundaries and real value: a report, a pricing calculation, a customer-facing page, an integration.
  3. Build it new, next to the old. The new component has its own tests and deployment, and reads or writes data in a way agreed for this transition.
  4. Route traffic gradually. Send a small share of requests, or a group of internal users, to the new component. Compare results with the old system where possible.
  5. Switch over and remove. When the new component is proven, route all traffic to it and delete the old code path. Deleting is part of the job; a migration that never removes anything only adds a second system.
  6. Repeat. Each cycle makes the old system smaller and the team more confident.

Data is the hard part

Code is usually easier to move than data. A few patterns help:

  • Clear ownership. For each piece of data, one system is the source of truth at any given time. Ambiguity here causes most migration incidents.
  • Change data capture or events to keep the new and old stores in sync during the transition, instead of nightly batch copies that drift.
  • Verification in both directions. Automated comparisons between old and new results catch differences before users do.
  • Reversible steps. Every switch-over has a tested way back.

Start with safety nets

Before changing anything, make the current behaviour visible. That usually means:

  • characterisation tests that record what the system does today, including its quirks, so changes can be checked against them;
  • monitoring and logging good enough to see errors and performance before and after each step;
  • a map of the system: modules, dependencies, data flows, integrations and the business rules hidden in them.

This is where AI-assisted analysis earns its keep. Models are good at reading large, poorly documented codebases, explaining what a module does, finding where a business rule is implemented and drafting characterisation tests. Engineers still verify every conclusion, but a mapping exercise that used to take weeks can take days, which makes the safety-net step affordable even on large systems.

When a rewrite is the right call

Incremental modernisation is not a dogma. A rewrite can make sense when the system is small, when its behaviour is well understood and well tested, when the platform it runs on is truly end-of-life with no migration path, or when the business process itself is being redesigned and the old behaviour no longer matters. Even then, it helps to borrow from the incremental approach: release in slices, run old and new in parallel for a while, and verify results.

Moving to the cloud along the way

Modernisation and cloud migration are often planned together, and they do not have to happen in one step either. A sensible sequence is to move the existing system as it is, or with small changes, onto managed infrastructure with proper backups, monitoring and automated deployment, then modernise it piece by piece on that more stable footing. New components can be built cloud-native from the start, with infrastructure as code and containers where they fit.

What to expect

A well-run modernisation shows results in weeks, not years: the first slice in production, measurable improvements in a part of the system people actually use, and a shrinking list of things nobody dares to touch. It also keeps the business running the whole time, which is the point.

Our legacy modernisation team starts every engagement with a code and architecture audit and a plan in slices, and our cloud and DevOps engineers provide the platform underneath. If you have a system that everyone is afraid of, tell us about it.

01Where we can help

Related services

02Keep reading

More from the blog

  1. 5 min read

    The European Accessibility Act: what it means for your website, app and online store

    Who the EAA applies to, what accessible means in practice (EN 301 549, WCAG), the exemptions, and a realistic plan to get a digital product compliant.
  2. 4 min read

    How to scope an MVP that tests what actually matters

    A practical method for scoping a minimum viable product: the riskiest assumption, the one path that must work, what to fake, and what never to skip.
  3. 4 min read

    AI-native software development: what changes for you as a client

    AI coding tools are everywhere. What an AI-native software house does differently, what it changes in cost, speed and quality, and what it does not.

Next step

Let’s build what’s next.

Tell us about the idea, the problem or the system that needs help. A senior engineer replies within one business day.

Start a project
↑↓ Navigate↵ Open