Skip to content
kodecraft
Software3 min read

Rebuild or refactor? Making the call on an ageing platform

Your software works, mostly, but every change is slow and risky. How to decide between improving what you have and starting again.

It's one of the most expensive decisions a business with in-house software makes. The platform that got you here is creaking: new features take months, bugs reappear, and the one developer who understands it is thinking about leaving. Someone suggests starting again from scratch.

Sometimes that's right. Often it isn't. Here's how to tell.

Why "rewrite it" is so tempting

A rebuild promises a clean slate: modern technology, no legacy mess, everything done properly this time. It's an attractive story.

The reality is that the old system contains years of business knowledge, much of it undocumented. There are edge cases, special customer rules, and fixes for problems nobody remembers. A rewrite has to rediscover all of that. Meanwhile the old system still needs maintaining, so you're paying for two. Big-bang rewrites are notorious for running long and launching with fewer features than the system they replaced.

Signs refactoring is the better path

  • The core architecture is sound, even if the code is messy. The data model makes sense, and the problems are in the details.
  • The technology is old but still supported. An older framework version can usually be upgraded step by step.
  • The business logic is valuable and complex. Rediscovering it would be costly and risky.
  • You need to keep shipping features while things improve.

Refactoring means improving the system in place, piece by piece: adding tests, untangling the worst modules, upgrading dependencies, improving performance. It's less exciting, but the risk is far lower. Value is delivered continuously, not all at the end.

Signs a rebuild is justified

  • The platform is on unsupported technology, with security patches no longer available and few developers who know it.
  • The architecture can't do what the business now needs. It might have been built for one country, one currency or one product, when you now need many.
  • The data model is fundamentally wrong, so every new feature fights the structure.
  • The system is relatively small, so a rebuild is weeks or a few months, not years.
  • Your business has changed so much that much of the old functionality is no longer needed.

The option most teams miss: replace it gradually

There's a middle way, often called the "strangler fig" approach after the plant that slowly grows around a tree. You build new functionality as separate, modern components that sit alongside the old system. Over time, you move features across one by one until the old system can be switched off.

Users barely notice. Risk is contained to one piece at a time. And you start getting value from the new technology in months, not years. For most medium-sized platforms, this is what we recommend.

Questions to answer before deciding

  1. What's the actual pain? Slow delivery, instability, cost, security or scalability? Different problems have different fixes.
  2. Where is it concentrated? Often, 20% of the system causes 80% of the trouble.
  3. Is there test coverage? Without automated tests, any change is a gamble. Adding tests is usually step one, whatever you decide.
  4. What would a rebuild need to include on day one? Be honest. The list is usually longer than people think.
  5. What's the cost of doing nothing for another year?

Get an outside view

The people closest to a system are often too close to judge it. A short, independent technical assessment can tell you where the real problems are, and what each option would realistically involve.

We do these regularly. Book a technical discovery call and we'll tell you honestly whether you need a rebuild, a refactor, or a bit of both.

technical debtlegacy softwarerefactoringmodernisation

Written by the kodecraft team: senior designers and engineers in Durban, South Africa, building for clients at home and abroad since 2018.