What legacy app modernization actually involves
A legacy application is any system the business depends on that has become expensive or risky to change. Age alone does not make software legacy. A ten-year-old PHP app that is tested, documented and patched is fine. A three-year-old app built by a freelancer who has since disappeared, with no tests and a framework two major versions behind, is legacy.
Modernization covers a spectrum. At one end is a version upgrade: moving from PHP 7 to PHP 8, or from an unsupported Node.js release to a current LTS. At the other end is a full replacement. Between them sit replatforming (moving to the cloud or containers with little code change), refactoring (restructuring code without changing behavior) and rearchitecting (splitting a monolith into separately deployable services). Most real projects mix several of these.
The large consultancies that dominate this topic write for enterprises with mainframes and COBOL. The typical system we see is smaller: an internal tool, a customer portal, an old mobile app or a line-of-business database with a web front end. The principles are the same; the budget and the timeline are not.
- Signs you need it: security patches no longer available, hosting on an end-of-life OS, one person who understands the code, features that take months instead of days
- Signs you might not: the app is stable, rarely changes, runs on supported software and costs little to keep running
- The cost of waiting: an app that loses compatibility with a browser, OS or payment provider can fail with no warning and no quick fix
Choosing a strategy: the seven Rs in plain terms
The industry shorthand for modernization options is the "seven Rs", popularized by AWS for cloud migration. Each application, or each module of a larger one, gets one of these decisions. Doing this per module rather than for the whole system is what keeps budgets sane.
| Strategy | What it means | Good fit when | Relative cost |
|---|---|---|---|
| Retain | Leave it alone for now | Stable, low-risk, rarely changed | None |
| Retire | Switch it off | Few users, or a SaaS tool already covers it | Very low |
| Rehost | Move as-is to new hosting | Server is end-of-life but the code is sound | Low |
| Relocate | Move to a managed platform with no code change | You want managed infrastructure quickly | Low |
| Replatform | Small changes to use managed services | Swapping a self-run database for a managed one | Low to medium |
| Repurchase | Replace with off-the-shelf software | The process is generic, like payroll or ticketing | Medium, ongoing licences |
| Refactor or rebuild | Restructure or rewrite the code | The app is core to how you compete | Medium to high |
Legacy modernization pricing
Every phase is fixed price and scoped upfront. You own all code and documentation from day one.
| Assessment and roadmap | From $2,000 | Code and infrastructure audit, risk list, per-module strategy, phased plan with fixed prices |
|---|---|---|
| Stabilization | Fixed quote | Critical patches, dependency upgrades, backups, monitoring, documented deployment; usually two to four weeks |
| Module rebuild or framework upgrade | Fixed quote | One module or upgrade path with characterization tests and data migration; usually six to twelve weeks |
| Staged full replacement | Quoted per phase | Strangler-pattern replacement delivered in increments over several months |
Every project starts at $2,000. Prices for later phases depend on what the assessment finds and are fixed before each phase starts.
How we modernize without stopping the business
The riskiest approach is the big-bang rewrite: freeze the old system, build a new one for a year, switch over on a weekend. It fails often because the old system holds years of undocumented business rules that nobody remembers until the new one gets them wrong.
We prefer the strangler fig pattern, described by Martin Fowler. A routing layer sits in front of the old app. New or rebuilt features are served by new code; everything else still goes to the legacy system. Module by module, traffic shifts until the old system handles nothing and can be switched off. Users see gradual improvement instead of a risky launch day.
Before any rewrite we write characterization tests: tests that record what the old system does today, including its quirks. Those tests become the definition of done for the new code. For data, we run the old and new databases in parallel, compare outputs, and keep a rollback path until the numbers match.
- Audit first: code, dependencies, hosting, data model, integrations and who uses what
- Stabilize: patch critical vulnerabilities, add backups and monitoring, document deployment
- Carve out: pick the module with the best ratio of business value to risk and rebuild it first
- Migrate data in rehearsals: dry runs on copies of production data before the real cutover
- Decommission: switch off old servers and licences only once nothing depends on them
Typical modernization targets and modern stacks
The target stack should be boring, well supported and easy to hire for. We usually move web applications to TypeScript with React or Next.js on the front end and Node.js, Python or Laravel on the back end, with PostgreSQL as the database. Old native mobile apps are often rebuilt in React Native so one codebase serves iOS and Android.
Common jobs include moving a desktop or Access database tool to a browser-based app, upgrading an unsupported framework such as AngularJS (end of support in 2021) to a current one, replacing FTP file drops with APIs, moving self-managed servers to managed cloud hosting, and adding single sign-on to an app that still stores passwords its own way. Where the old system exchanged data through CSV exports and manual re-keying, we usually add proper API integrations as part of the work.
What modernization costs and how long it takes
Cost depends far more on how many business rules are buried in the code than on the number of screens. A useful way to think about it is in phases, each separately priced, so you can stop after any phase with something of value.
An assessment and roadmap typically takes one to two weeks. A stabilization pass (security patches, backups, monitoring, documented deploys) takes two to four weeks. Rebuilding a single module or upgrading a framework typically takes six to twelve weeks. A full staged replacement of a mid-sized business application usually runs over several months, delivered in increments rather than one launch. We give a fixed price per phase after the assessment, never an open-ended hourly estimate.
How we work
- 01
Audit the old system
We read the code, map dependencies and integrations, check hosting and security status, and interview the people who use it daily to find the undocumented rules.
- 02
Agree a per-module plan
Each module gets a decision (retain, retire, rehost, replatform, repurchase or rebuild) with a fixed price, so you can fund the work in stages.
- 03
Record current behavior
We write characterization tests against the legacy app so the new code is measured against what the business actually relies on today.
- 04
Replace in increments
A routing layer sends traffic to new modules as they ship, with data migration rehearsed on production copies and a rollback ready for each cutover.
- 05
Switch off the old stack
Once nothing depends on the legacy system we decommission servers and licences and hand over documentation and deployment runbooks.
Frequently asked questions
Should we rewrite our legacy app from scratch?
Usually not all at once. Full rewrites take longer than planned and miss business rules hidden in the old code. A staged replacement, where modules are rebuilt and switched over one at a time, delivers value sooner and keeps the old system as a fallback.
Can you modernize an app nobody on our team understands?
Yes. That is the most common situation. We start with a code audit and interviews with users, then write tests that capture what the system does today before changing anything.
Will there be downtime during modernization?
Planned cutovers usually happen out of hours and take minutes, not days. Data migrations are rehearsed on copies of production data first, and each step has a rollback path.
How much does legacy app modernization cost?
Our assessments start at $2,000 and produce a phased plan with a fixed price for each phase. Later phases are priced on what the audit finds: a dependency upgrade on a small app costs far less than replacing a system with years of embedded business rules. You can stop after any phase.
Do we have to move to the cloud?
No. Cloud hosting is often the simplest way to get off unsupported servers, but some businesses have good reasons to stay on their own infrastructure. The strategy is chosen per module based on cost, risk and compliance.
Related
- App DevelopmentLearn more →
- Cloud Migration Services for Growing BusinessesLearn more →
- App Maintenance Services That Keep Your App Working After LaunchLearn more →
- Backend Development Services for Apps That Need to ScaleLearn more →
- Fractional CTO Services: Senior Technical Leadership Without a Full-Time HireLearn more →