“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
- Does your application still serve its business purpose?
- Does the application run on supported versions, or can it be brought there?
- How often does the application need to be changed or extended?
- How much knowledge is in the code that isn’t recorded anywhere else?
- Are there tests that safeguard changes?
- What does a day of downtime cost you?
- 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
- Does your application still serve its business purpose?
- Does the application run on supported versions, or can it be brought there?
- How often does the application need to be changed or extended?
- How much knowledge is in the code that isn’t recorded anywhere else?
- Are there tests that safeguard changes?
- What does a day of downtime cost you?
- When does something need to improve?
Your result
Best-fitting path
- Makes sense when
- Risk
- Effort
- Pays off
Also possible
These answers tipped the balance
Sources
- [1]Strangler Fig Application · Martin Fowler
- [2]Things You Should Never Do, Part I · Joel Spolsky, 2000
- [3]Second-system effect · Wikipedia