Skip to content

Modernize your application or rebuild it?

Your application has aged, and often the very first agency you ask says: rebuild everything. The quote is large, the timeline long, and you can hardly judge whether it’s necessary or mainly benefits the vendor. At the same time, you don’t want to put more money into something you’ll have to replace later anyway. Yet there are four paths, not two, and which one fits doesn’t depend on how old the technology is, but on which path moves your business forward with the least risk.

By Dimitri König4 min read

“Rebuild everything” sounds decisive and promises a clean fresh start. In practice, a complete rebuild of an application is rarely the best path.

What are the options for an aging application?

Option When it makes sense Risk Effort Pays off from
Keep running and secure it The application serves its purpose, there are few changes low low immediately
Modernize step by step The application is still being developed, the technology is outdated low to medium medium, spread out each stage
Replace parts Individual areas no longer hold up, the rest still does medium medium each replaced part
Rebuild Processes have changed fundamentally, the technology can no longer be operated high high the switchover

For an aging application, three of the four paths can be combined: secure first, then modernize step by step and replace individual parts. A rebuild is the only path where the benefit only comes at the end.

In concrete terms, securing an application means: with ongoing maintenance from Unique-P, it stays on supported versions, and updates come on a fixed schedule. If the replacement has already been decided, the article Keeping a legacy system running until its replacement helps with the question of how much to invest until then.

Why rebuilds so often take longer than planned

Back in 2000, Joel Spolsky called a complete rewrite one of the worst strategic mistakes a software company can make. His argument still holds today: old code looks messy because it contains years of bug fixes and special cases. A rebuild throws that knowledge away and has to painstakingly work it out again. On top of that comes the so-called second-system effect described by Fred Brooks: a successor system tends to get overloaded with all the ideas that didn’t fit in the first time.

What is the strangler fig principle?

With the Strangler Fig Application, Martin Fowler describes a middle path between keeping the system running and rebuilding it: the new system gradually grows around the old one. Function by function is rebuilt and redirected until the old system can be switched off. The advantage for you: each stage brings an immediate benefit, the risk stays small, and you can stop at any time if the rest is good enough. A legacy migration with parallel operation instead of a big bang at Unique-P follows the same principle.

Seven questions for deciding between modernizing and rebuilding

  1. Does your application still serve its business purpose?
  2. Does the application run on supported versions, or can it be brought there?
  3. How often does the application need to be changed or extended?
  4. How much knowledge is in the code that isn’t recorded anywhere else?
  5. Are there tests that safeguard changes?
  6. What does a day of downtime cost you?
  7. Who will look after the application afterwards, regardless of which path you choose?

Typical mistakes when deciding on a rebuild

  • Rebuilding because the code is ugly. Ugly code isn’t a business risk; unknown code is.
  • Rebuilding without parallel operation. A big-bang switchover on a set date shifts all the risk onto a single day.
  • Forgetting requirements from the old system. The special cases nobody wrote down only show up after go-live.
  • Letting the rebuild vendor do the analysis. Whoever earns money from the rebuild rarely recommends anything else.

When a rebuild was the better path

An example from my own projects where a rebuild was the better path: a B2B platform on Magento 2 had drifted so far from the core through numerous customizations that only about 20 percent of the Magento standard features were still in use. The platform was therefore rebuilt on Laravel, and a number of custom modules could be carried over with minimal changes: Magento 2 migrated to Laravel. The deciding factor for the rebuild was how little of the Magento standard was still being used.

How do I find out which path fits my application?

A solid decision between modernizing and rebuilding requires an assessment of the current state: technology, risks, dependencies, operations. The Takeover Assessment from Unique-P delivers it at a fixed price, with a recommendation for one of the four paths: keep running, modernize, replace parts or rebuild. The principle behind it: stabilize before rebuilding. Which path is right for you is decided by the analysis, not by my revenue.

If the choice falls on replacing the legacy system, your data belongs in the plan from the start: Taking your data from the legacy system. And if you have something rebuilt, make sure you don’t end up dependent on one vendor again afterwards: Commissioning a web application without lock-in.

Which of the four paths fits your application?

The “Modernize or rebuild?” decision aid uses seven questions to match your situation to one of the four paths for an aging application: keep running and secure it, modernize step by step, replace parts, or rebuild. Each answer counts toward one or more paths, and the result names the best-fitting path, a second possible path and the answers that tipped the balance.

The decision aid’s weighting follows the comparison table of the four paths (when it makes sense, risk, effort, payoff), the questions for the decision and the typical mistakes when rebuilding. It doesn’t replace an assessment of the current state: it shows where your answers point, not what’s in the code.

The seven questions of the decision aid

  1. Does your application still serve its business purpose?
  2. Does the application run on supported versions, or can it be brought there?
  3. How often does the application need to be changed or extended?
  4. How much knowledge is in the code that isn’t recorded anywhere else?
  5. Are there tests that safeguard changes?
  6. What does a day of downtime cost you?
  7. When does something need to improve?

Sources

  1. [1]Strangler Fig Application · Martin Fowler
  2. [2]Things You Should Never Do, Part I · Joel Spolsky, 2000
  3. [3]Second-system effect · Wikipedia

Frequently asked questions.

When is a rebuild really worth it?

A rebuild of the application only pays off when your business has changed so much that it no longer serves its purpose, or when the technology no longer allows safe operation and can’t be renewed step by step. Ugly code alone is no reason for a rebuild, because it often contains years of bug fixes and special cases that a rebuild first has to learn all over again.

Legacy migration without downtime

What is the strangler fig pattern?

The strangler fig pattern is a strategy in which a new system gradually grows around the old one. Individual functions are rebuilt and redirected one after another until the old system has nothing left to do and can be switched off. Martin Fowler named the pattern after the strangler fig, which slowly envelops its host tree.

Can we keep working normally during the modernization?

Yes, during a step-by-step modernization your team keeps working normally, and that’s its biggest advantage over a rebuild. Each stage is tested and rolled out individually, and your application remains fully usable in between. With a rebuild, on the other hand, the old system keeps running without improvements until the switchover.

Who should make the decision?

The decision between modernizing and rebuilding lies with you or your management, based on a technical assessment. What matters is that the analysis comes from someone who doesn’t earn money from the rebuild. Otherwise, you know the recommendation before the analysis begins.

Takeover Assessment