🏚️Operations & maintenance7 min readUpdated: Nov 27, 2026

Legacy Application: Analysis Before Modernization

A legacy application is an older system the business still depends on. Here's what to document about it before you modernize or rewrite it.

👨‍💻
Roman
AboutTheApp

Overview & context

A legacy application is an older app that still runs in production and that the business still depends on. It usually runs on technology that's no longer evolving, and its maintenance rests on a single person. Before you modernize or rewrite it, you need to pin down what it does, where it runs and what it depends on. Below you'll find what to document, how AI can help and what to do with the result.

1. What a legacy application is

A legacy application is one the business can't switch off and can't easily replace with a newer solution. Age alone isn't necessarily the only problem. An app built a year ago, with no documentation and no contact for the original author, can easily be in worse shape than a ten-year-old one that's well written and properly documented.

Legacy code also often has no automated tests at all, which complicates maintenance and development even more: every change is risky or very complicated, because nobody knows exactly what it might cause.

2. Why analyze before modernizing

Before modernizing, you need to analyze the existing app, because you can only replace well what you can describe. Whether to maintain, adapt or rewrite an app depends on everything it does, what its users expect from it and how many other systems rely on it.

A rewrite based only on the commonly known functionality often misses edge cases nobody wrote down, such as an exception for one customer or an accounting export that only runs at the end of the financial year. Well-prepared notes also make the later software handover and planning maintenance easier.

3. What to document first

Start by finding out what you can't safely change or restore the app without. The list below answers where the app runs, how it's built and deployed, what it depends on and who knows it.

Task listClick to toggle

4. How AI can document old code

AI can help describe old code, but treat its output as a draft that needs checking. Ask it to summarize modules, list inputs and outputs, map the dependencies between components and propose tests that capture the current behavior. Run reviews regularly and have agents check the information they found.

Check the output against the running app and store it next to the code or in your documentation, not just in the AI conversation or in agents' scratch folders. As with apps built with AI, AI doesn't know what was intended and what happened by accident.

5. Maintain, replace gradually or rewrite

You can modernize gradually or all at once. The notes from the previous steps should help you decide which one is realistic. Martin Fowler describes the strangler fig approach: replacing parts of the old app one at a time with a new application while the original keeps running. The Microsoft Azure documentation describes the same pattern.

ApproachWhat it involvesWhen it fits
MaintainDependency updates, patches and bug fixesThe app is stable and support for the versions it uses hasn't ended
Replace graduallyReplace modules one by one with a new implementationSupport for the technology is ending and the parts can be changed step by step
RewriteWrite a new app and carry over the old behaviorThe technology is out of support and the behavior is well documented

6. Where to keep the notes on an old application

Keep the notes on an old application together, even if they don't physically live in one place. In AboutTheApp, an app has its links grouped by category: Source Code (repository, design), Documentation, DevOps & Infrastructure (hosting, deployment), Monitoring, Support, Security and Legal & Compliance. Links that only concern one customer or environment can be attached just to that customer or environment and marked private.

The dashboard shows the deployed versions for each customer and can filter outdated installations. The Components & Licenses tab shows the libraries the app uses and their versions. It's a place that points to the notes. You can also keep the links for a newly built app in an application inventory and its list of third-party services.

Passwords belong in a password manager

Credentials and API keys don't belong in AboutTheApp. Link to the entry in your password manager instead.

Frequently asked questions

What is a legacy application?

A legacy application is an older app that still runs in production and that the business depends on, but that's hard to change because it's outdated, undocumented or nobody knows it. It's not only the age that matters, but also how hard it is to make changes in it.

What's the difference between a legacy application and a legacy system?

A legacy application is a single program, while a legacy system is the wider whole including databases, servers and integrations. The terms are often used interchangeably, but the analysis steps are the same.

What should you document first about an old application?

Where and in which version it runs, where the source code is and how it's built, what it depends on, where the data and backups are and who knows the app. This basic information is the groundwork for analyzing the app in more depth.

When should you modernize a legacy application?

When support for the technology it uses has ended, changes take disproportionately long or the app is a risk to operations. Before deciding, find out what the app does and who depends on it.

Can AI document old code before a rewrite?

It can prepare a detailed description of the source code, summaries of modules, a description of dependencies and proposed tests. Treat the result as a draft that needs to be reviewed.

Can you record an old application in AboutTheApp?

Yes. Add it as a new product and attach links to the repository, documentation, hosting and monitoring, in short everything you find out about it. The About page then shows all the information together, and where needed you can carry part of it over to the newly built app, where it serves as information about the original solution.

In short

Before you modernize a legacy application, write down where it runs, how it's built, what it depends on and who uses it. With those notes, the choice between maintaining, replacing gradually and rewriting is clearer.

AboutTheApp

Want the notes on an old application in one place?

Add your app to AboutTheApp for free and attach links to the repository, documentation, hosting and contacts.