Contact us

Before you approve the rewrite

Most rewrites run long and arrive with fewer features than the system they replace. Six questions we ask before recommending one, and what we usually do instead.

We get asked to estimate a rewrite about once a month. A product has slowed down, the code is hard to change, the original developers have left, and someone has concluded that starting again is the only way out. Sometimes they are right. More often, a rewrite would cost six to twelve months of feature work and leave the team with a newer system that has the same problems in different places.

Before we recommend one, we work through six questions with the client's team. The answers usually point somewhere more useful.

Six questions first

  • What specific change is slow today, and how slow? 'Adding a payment method takes eight weeks' is a problem we can work with. 'The code is bad' is not.
  • Is the slowness in the code, or in testing, deployment and approvals? Many slow teams have a reasonable codebase and a release process that takes a week.
  • Which parts of the system change often? Most products have a busy core and a large, quiet edge that nobody needs to touch.
  • What does the current system do that nobody has written down? Old systems carry years of edge cases, and a rewrite has to rediscover every one.
  • Can the business stop shipping features for the length of the rewrite? If not, you will be building two systems at once.
  • Who will own the new system in two years, and do they want it?

What we usually find

When Onyx Ridge Capital asked us to scope a rewrite of their investor portal, the team was sure the backend was the problem. Reports took minutes to generate and every change broke something. Two weeks of audit showed a different picture. About 80% of the slowness came from four database queries and a nightly job that recalculated every portfolio from scratch. The breakages came from having no automated tests around the money calculations.

We fixed the queries, moved the reports to incremental updates and wrote tests around the calculations before touching anything else. Reports got four times faster. The rewrite they had budgeted six months for never happened, and the team spent that time on a new investor dashboard instead.

The audit cost us two weeks. The rewrite would have cost us the year.

Replace in slices

When parts of a system genuinely need replacing, we replace them one slice at a time. The new code runs next to the old, a routing layer sends a share of traffic to it, and the old path is deleted once the new one has carried real load for a while. This is often called the strangler fig pattern. It is slow in the way that saves projects.

Each slice has to be small enough to ship in a few weeks and valuable enough that the business would want it even if the next slice never happened. That second rule matters. A change of priorities halfway through then leaves you with a better system and nothing half built.

When a rewrite is the right call

There are good reasons to start again. The platform may be out of support with no upgrade path, such as an old framework with known security holes. The product may have changed so much that the original data model fights every new feature. Or the system may be small enough to rewrite in a few weeks.

Even then, we keep the old system running, move users across in groups and compare the outputs of both systems before switching anything off. Calder Labs moved their core service off a monolith this way over five months, with no downtime and a 41% drop in cloud costs at the end.

What to ask your team this week

Pick the change your business most wants and that engineering says is hardest. Ask the team to break down exactly where the time goes, from ticket to production. If most of it is in the code, look at which modules. If most of it is outside the code, you have found a cheaper problem to solve first.

Either way, you will be making the decision from a measurement. That alone makes most rewrite conversations shorter and calmer.

A senior engineer reads it and replies within one working day.

WhatsApp us