Integrate or replace? How to decide what to do with a legacy system
Almost every company or institution with a few years of operation has a legacy system: an ERP, a core banking system, a payroll system or a database that works, that nobody wants to touch and that daily operations depend on. Sooner or later the question comes up: do we connect it to the new tools, or do we replace it?
There is no single answer. There are three paths and an orderly way to choose between them.
The three paths
| Path | What it means | When it usually makes sense |
|---|---|---|
| Integrate | The system stays. An integration layer, called middleware, connects it to the other systems so they exchange data without manual work. | The system does its job well, but it lives in isolation and forces people to re-type or export data by hand. |
| Replace piece by piece | The new system is built next to the old one and takes over functions one at a time, until the old system can be switched off. | The system is large and critical, and it cannot stop while it is being replaced. |
| Replace all at once | The whole system is substituted in a single migration, with an existing product or a new development. | The system is small, or it has to disappear soon for reasons beyond your control. |
Step 1: classify each system on two axes
A widely used method to organize an application portfolio is Gartner's TIME model. It rates each system on two axes: how much it contributes to the business (functional fit) and how healthy it is inside (technical fit). Crossing them gives four decisions:
| Business value | Technical health | Decision |
|---|---|---|
| High | Good | Invest: improve it and integrate it with the rest. |
| High | Poor | Migrate: replace it, preferably piece by piece, because operations depend on it. |
| Low | Good | Tolerate: keep it as it is while replacing it is not worth it. |
| Low | Poor | Eliminate: retire it and archive its data. |
This classification is done system by system. It is normal for one organization to have systems in all four boxes.
Step 2: think twice before replacing everything at once
Martin Fowler, one of the most cited references in software architecture, sums up three risks of rewriting a whole system:
- It takes a long time, and operations cannot wait that long without improvements.
- It is hard to document everything the current system does, so the specification of the replacement is almost always incomplete.
- Much of what the system does is no longer needed, and rebuilding it is wasted effort.
That is why, when the system is large and critical, the recommended alternative is to replace it piece by piece.
Step 3: if you replace, do it piece by piece
This approach is known as the "Strangler Fig" pattern, after the fig tree that grows around another tree until it takes its place. Microsoft describes it in four phases:
- An intermediate layer is installed between the users and the system. At first, almost everything still goes to the old system.
- Functions are moved to the new system, one at a time. The intermediate layer decides which of the two receives each request.
- The old system is switched off once nothing depends on it.
- The intermediate layer is removed, or kept as an adapter if some system still needs it.
In practice, that intermediate layer is middleware. That is why integrating and replacing are not opposite paths: integration is often the first step of a well-executed replacement. Users do not notice the transition, and each stage can be tested and rolled back on its own.
The same Microsoft analysis warns when this approach does not apply. If there is no way to intercept requests to the system, if the old system cannot be modified or read, not even from its database, if the system is small or if it must disappear very soon, a direct replacement is the better choice.
Step 4: answer these ten questions
- What result are you after? Less re-typing, real-time data, meeting a regulation or lowering costs. Each goal can lead to a different path.
- How critical is the system? If it stops for an hour, do operations stop?
- Does it have support? Is there a vendor or a team that knows it and can maintain it?
- Can it be connected? An API, web services, exchange files or, at least, read access to its database.
- Does it meet current regulations? For example, Costa Rica's e-invoicing version 4.4 or your regulator's requirements.
- How many systems depend on it, and how many processes run through its data?
- Which part of what it does is no longer used? That part is not rebuilt.
- How much does it cost to maintain each year, including the manual work its isolation creates?
- Is there a deadline? The end of a contract, of a support period or of a version.
- Who owns its data and its code? If you do not control them, every change will depend on a third party.
If the system is critical, can be connected and does its job, the answer is almost always to integrate now and decide later, with real data, whether to replace it piece by piece. If it cannot be connected, has no support and is small, it is better to replace it all at once.
How we work through this decision
At WiseGuysLab we start with an assessment of your current systems and their connections. We give you a written recommendation for each system: integrate, replace piece by piece or replace all at once, with its pros and cons. If the decision is to integrate, we do it with our middleware service. If it is to replace, with staged custom development and your payment protected in escrow. You can also book a meeting.
This article is for information only. The decision for each system depends on its technical, contractual and regulatory context.

