YOUR DIGITAL HUB
← Back to blog

Legacy application: definition, risks and a step-by-step exit plan

12 min read

Cover — Legacy application: definition, risks and exit plan

What is a legacy application

A legacy application, or legacy system, is software an organisation still depends on to operate but no longer controls well enough to change, secure or replace without risk. The word says it: the current team inherited the system from its predecessors, along with its technical choices and its buried business rules.

Age is not the criterion. A fifteen-year-old application that is tested, documented and kept up to date is not a problem. A three-year-old application written in a hurry by a supplier that has since disappeared, with no tests and no documentation, already is one. Michael Feathers, in Working Effectively with Legacy Code, offers a deliberately radical definition: legacy code is code without tests, meaning code you cannot change while knowing whether you have broken it.

The useful criterion is twofold: how much the organisation depends on the system, and how much control it has lost over it.

Characteristics of a legacy system

A legacy system usually combines several of these traits:

  • End-of-life technology. A language, framework, database or operating system that no longer receives fixes.
  • Lost or concentrated knowledge. The authors have left, and one or two people hold what remains.
  • No safety net. Few or no automated tests to check that a change has broken nothing.
  • Missing or wrong documentation. Business rules are discovered by reading the code.
  • Hand-crafted deployment. Manual releases, a server that cannot be rebuilt identically.
  • Tight coupling. Other applications read its database or its exchange files directly.
  • Disproportionate cost of change. A modest change takes weeks.
  • Real business value. This is what separates legacy from merely old software: the business cannot do without it.

Legacy, software obsolescence, technical debt

These terms are often used interchangeably. They do not mean the same thing.

Notion What it refers to Example
Software obsolescence A component no longer maintained by its vendor A language version past security support
Technical debt Internal quality deficiencies that make every change more expensive Duplicated business rule, missing tests
Legacy application A whole, critical system the organisation has lost control of A business tool written by a team that left long ago

Obsolescence and debt are causes. Legacy is the resulting state when they have not been dealt with. Measuring and repaying debt is covered in a separate article: technical debt: definition, examples, how to measure and reduce it.

The risks of a legacy application

Security: unsupported versions

This is the most immediate risk. An unsupported component no longer receives fixes: any vulnerability discovered after end of support stays open.

PHP shows how fast an application becomes obsolete without anyone touching it. The PHP support policy provides two years of active support per branch, followed by two years of critical security fixes only. At the date of this article, every branch older than PHP 8.2 is end of life, and PHP 8.2 receives security fixes only, until 31 December 2026.

Security frameworks address the subject directly. The OWASP Top 10 2025 states, in its A03 Software Supply Chain Failures category, that an application is likely vulnerable when any of its software is vulnerable, unsupported or out of date. ANSSI, the French national cybersecurity agency, devotes one of the 42 measures of its guideline for a healthy information system to anticipating the end of maintenance of software and systems.

Cost

The cost of legacy does not appear on any single budget line. It is spread across longer development times, incidents, hosting of old infrastructure, manual workarounds by users and, above all, postponed business projects.

Recruitment and key-person dependency

Few developers want to work on an abandoned technology, and those who know it are becoming rare. The organisation then depends on a handful of people or a single supplier, whose departure would bring the system to a halt.

Compliance

The GDPR requires the controller and the processor to implement appropriate technical and organisational measures to ensure a level of security appropriate to the risk (Article 32). Processing personal data on components that no longer receive fixes is hard to defend against that requirement. Have your obligations, including sector-specific ones, assessed by your legal counsel or data protection officer.

Assessing a legacy application

The inventory

Decide across a portfolio, not one application at a time. For each one, record:

  • the business process it supports and its owner;
  • the technologies, their versions and their end-of-support dates;
  • the interfaces, including direct database access;
  • the data it holds and its sensitivity;
  • the people able to maintain it;
  • the annual cost and the pending business requests.

For a PHP application, the detailed diagnostic method and its tools are described in our article on taking over legacy PHP: diagnosis and mapping.

The criticality x obsolescence matrix

Then place each application on two axes. Business criticality measures what an outage costs and how many processes depend on it. Obsolescence combines the support status of the components, the loss of knowledge and the difficulty of making changes.

Low obsolescence High obsolescence
High criticality Maintain: keep up to date, protect with tests, watch end-of-support dates Treat first: secure immediately, then start an exit plan
Low criticality Let it live with minimal monitoring Retire, replace with a standard tool or isolate

This matrix stops the budget going to the application developers find most irritating rather than the one that puts the business most at risk.

Seven options for dealing with legacy

Moving off legacy does not mean rewriting everything. Seven options exist, and a single system often combines several depending on the module. They partly overlap with the "7 Rs" AWS uses for cloud migrations.

Option Principle When to choose it Main risk
Keep and contain Isolate the system, freeze changes Planned end of life, low exposure The temporary becomes permanent
Encapsulate Put an API in front of the system It works but blocks other projects Internal debt remains intact
Replatform Change hosting or runtime without touching the architecture Obsolescence is mainly in the infrastructure Moving the problem
Refactor progressively Replace piece by piece while in service Critical system, downtime impossible A transition that never ends
Rewrite Rebuild, then cut over Small, well-understood scope Tunnel effect, risky cutover
Replace with a package Adopt an off-the-shelf product or SaaS Standard need Data migration, vendor dependency
Retire Switch the application off Marginal or redundant use A forgotten user

Replatforming is often part of a cloud migration and hosting project. AWS notes in the same documentation that re-architecting is the most complex and costly strategy, and recommends, for large programmes, modernising after the migration rather than during it.

A step-by-step plan to move off legacy

1. Set up governance

An exit plan spans several budget years. It needs an executive sponsor, a business owner per domain, a single technical lead and a regular steering committee. The first decision to make: which business requests continue to be served on the old system during the transition, and which wait for the new one.

2. Frame the budget

Three items are regularly underestimated: the period during which the old and new systems are both paid for, data migration, and the time required from business teams to specify, test and be trained. Budget by tranche, with a decision point at the end of each, and also cost the scenario in which nothing is done. If you are contracting with a French supplier, see our guide to fixed price, time and materials and agile fixed price.

3. Secure what exists

Before building anything, reduce the immediate risk: backups tested by restoring them, available patches applied, network isolation of unsupported components, error monitoring, and automated tests describing the current behaviour of critical paths. Those tests will serve as the reference throughout the migration.

4. Sequence the work

Split the system into functional domains and order them. The first slice must be small enough to finish quickly and real enough to validate the whole chain, from build to removal of the old code. Do not promise full feature parity with the old system: the authors of Patterns of Legacy Displacement identify it as a recurring factor in failure, because it most often leads to planning a single cutover.

5. Apply the strangler fig pattern

The Strangler Fig, described by Martin Fowler, takes its name from the strangler figs he saw in the rain forests of Queensland in 2001: the plant grows around a host tree and gradually replaces it. Applied to software, the pattern consists of building the new system alongside the old one, moving behaviour across piece by piece and deleting the old code as you go.

In practice, a routing component (reverse proxy, API gateway or routing layer) placed in front of the old system sends each request to the old or the new system, depending on the feature. Fowler stresses two notions. Seams are the places where the system can be split so that one part can be replaced independently of the rest. Transitional architecture is the temporary code that lets old and new coexist, and that will be removed at the end: it is a normal cost of the project. A detailed example is given in our article on migrating PHP 5.6 to 8.3 with the strangler pattern.

6. Migrate the data

This is the step that derails the most projects. A few rules:

  • map the data field by field, including fields whose meaning nobody remembers;
  • decide what is migrated, archived or dropped, taking legal retention obligations into account;
  • clean before migrating, not after;
  • write the migration as a repeatable program and rehearse it on a copy of production;
  • check the result with numerical reconciliations between the two systems;
  • while both systems coexist, designate a single system of record for each piece of data.

7. Run old and new in parallel

Three practices limit the risk of this phase. A progressive cutover opens the new system to a small group of users before extending it. Comparing results means having both systems process the same inputs and analysing the differences. Rollback remains possible at every step, and has been tested. Set a maximum duration: a parallel run with no end date doubles costs and team workload.

8. Decommission

The plan is only finished when the old system is switched off. Checklist:

  • no traffic or scheduled jobs on the old system, verified in the logs;
  • interfaces and direct access to the old database removed from neighbouring applications;
  • data archived according to the applicable retention periods, then deleted;
  • accounts, secrets and certificates revoked;
  • servers, licences and maintenance contracts terminated;
  • transitional architecture removed from the new system;
  • documentation and the IT inventory updated.

Mistakes to avoid

  • Rewriting everything at once. A single cutover concentrates the risk on one date, and the business gets nothing during the build.
  • Rebuilding like for like. Part of what the old system does is no longer used.
  • Freezing all changes. The business will work around the freeze, and the new system will be born behind the need.
  • Leaving data until the end. Data quality determines the cutover date more surely than code does.
  • Forgetting to decommission. Two systems to maintain cost more than one legacy system.
  • Changing technology without changing practices. Without tests, documentation or knowledge transfer, the new system will be the next decade's legacy.

Frequently asked questions

What does legacy mean in IT?

In IT, legacy refers to a system, application or code base inherited from an earlier period, still in use, but built on outdated technologies or practices and hard to change. The term describes loss of control as much as age.

How old does an application have to be to count as legacy?

There is no age threshold. An application becomes legacy when its components are no longer maintained, knowledge of how it works has been lost, and changing it carries a risk nobody can assess. That can happen within a few years.

Should you rewrite or refactor a legacy application?

Progressive replacement is generally less risky than a full rewrite: the system stays in service, value is delivered in stages and each stage can be rolled back. A rewrite is justified for a small, well-understood scope.

What is software obsolescence?

It is the situation of software or a component that is no longer maintained by its vendor, no longer receives security fixes or is no longer compatible with its environment. It is managed by tracking the end-of-support dates published by vendors and planning upgrades before the deadline.

Conclusion

A legacy application is not an old application: it is a critical application the organisation has lost control of. You rarely get out of it through one large rewrite project, and almost always through a series of modest decisions: inventory, rank by criticality and obsolescence, secure what exists, choose an option per module, replace progressively, migrate data methodically, then actually switch the old system off.

To assess your application portfolio or prepare an exit plan, write to us at contact@your-digital-hub.com or read about our legacy application modernization service. You can also describe your situation on our contact page.

Let's talk about your project. Send us the essentials.

Tell us the context, whether it is a new build, a takeover or a migration, the technologies in place and your target date.