Legacy application modernization services: rewrite, refactor or replatform

Your old system still runs billing, orders or operations. We move it onto a supported, maintainable stack one module at a time, so the business keeps working and each cutover has a tested rollback path.

In short

Legacy application modernization means moving a system that still runs your business onto a supported, maintainable stack without stopping the business. We run modernization in phases: a short assessment decides whether to rewrite, refactor or replatform, then modules move one at a time behind a parallel run, so each cutover has a rollback path. For reference, market benchmarks put enterprise-grade custom software at $300k to $1M+ over 8 to 18+ months, a general build figure.

Enterprise-grade build (market range)
$300k to $1M+, 8 to 18+ months Source: Keyhole Software
.NET Framework 4.6.2 end of support
January 12, 2027 Source: Microsoft Learn
PHP 8.2 security support ends
December 31, 2026 Source: The PHP Group
US federal IT spend on running existing IT
About 80% Source: US Government Accountability Office

What legacy application modernization covers

A legacy system is not just old code. It is code that still earns or moves money, that few people understand, and that gets harder to change every year. The original developers have often left, the framework is out of support, security findings pile up, and a small change takes weeks because nobody can predict what it will break. Modernization fixes that without asking you to stop the business while it happens.

We modernize five kinds of systems.

Unsupported frameworks and runtimes

The clock here is set by the vendor, not by you. Once a runtime leaves support, security fixes stop, and auditors, insurers and enterprise customers start asking questions. Typical candidates are .NET Framework applications, older .NET versions, PHP 7 and early PHP 8 code, Java EE monoliths, VB6 desktop tools, classic ASP sites, Delphi applications, and Microsoft Access databases that have outgrown a desktop file. Not every item on that list is out of support. .NET Framework 4.7 to 4.8.1, the VB6 runtime and classic ASP still ship as Windows components, so the pressure there is different: no new features, Windows-only hosting, tooling that no longer gets updates and fewer engineers who can work on them.

The table below shows support dates from the official vendor pages, as checked on November 24, 2026.

Platform Version Support status
.NET Framework 4.5.2, 4.6, 4.6.1 Retired April 26, 2022
.NET Framework 4.6.2 Ends January 12, 2027
.NET Framework 4.7 to 4.8.1 Follows the lifecycle of the Windows version it runs on
.NET 8 (LTS) and 9 (STS) Ended November 10, 2026
.NET 10 (LTS) Supported to November 14, 2028
.NET 11 (STS) Supported to November 14, 2028
PHP 8.0 and 8.1 End of life
PHP 8.2 Security fixes end December 31, 2026
PHP 8.3 Security fixes end December 31, 2027
PHP 8.4 Security fixes end December 31, 2028
PHP 8.5 Security fixes end December 31, 2029
PHP 8.6 Security fixes end December 31, 2030

Sources: Microsoft .NET Framework lifecycle, 2026, Microsoft .NET support policy, 2026 and PHP supported versions, 2026. One detail catches teams out: an application moved to .NET 8 in 2024 is already out of support again, because .NET 8 support ended in November 2026. Target a long-term support release and plan the next upgrade as routine work, not a project.

If a deadline is close, buy time first. An application on .NET Framework 4.6.2 can usually be retargeted to 4.8.1, which follows the Windows lifecycle, with far less work than a port to .NET 10. A PHP 8.2 codebase can usually move to 8.4 as a minor-version upgrade. Neither fixes the underlying problem, but both restore security support while the assessment plans the real modernization.

Monoliths that block releases

One codebase, one database, one deployment, and every release needs the whole team in a room. The fix is rarely "split everything into microservices". Usually it is a few clean module boundaries, a deployment pipeline and tests, then extracting only the parts that need to scale or change on their own schedule.

Legacy databases and integrations

Old schemas with business logic buried in stored procedures, nightly file transfers, and point-to-point links that break when either side changes. We map them, put the logic under tests, move it into application code where that makes change safer, and put stable interfaces in front of them through API development and integration work so new apps can talk to the old core while it is being replaced.

Old interfaces on working back ends

Sometimes the back end is sound and the problem is a desktop client or a web interface from another decade. A new front end over an API layer can give users a modern experience in months while the core is modernized behind it at a safer pace.

Line-of-business systems

ERP, CRM, operations and billing systems built in-house years ago are the highest-stakes candidates, because the business stops when they stop. These usually get the full assessment, parallel runs and staged cutovers described below. If the system has grown into a platform for many departments, our enterprise software development page covers how we approach that scale.

Mainframe and COBOL modernization is a specialist field with its own tooling and sits outside this service. Ask any vendor who claims it for named, checkable mainframe projects.

Rewrite, refactor, replatform or replace: how to decide

The industry vocabulary comes from cloud migration. AWS lists seven strategies: retire, retain, rehost, relocate, repurchase, replatform, and refactor or re-architect, and it calls refactoring the most complex and costly of them (AWS Prescriptive Guidance, 2026). AWS uses refactor to mean redesigning core components during the migration, which is closer to the full rewrite row below than to incremental refactoring. For a single business-critical application, five options matter in practice.

This table compares the five options on fit, risk, relative cost and how soon you see value.

Option When it fits Main risk Relative cost Time to first value
Rehost (lift and shift) Code is acceptable, the hosting is the problem Old problems move with the code Lowest Weeks
Replatform Runtime or database is out of support, logic is sound Hidden dependencies on the old platform Low to medium Weeks to a few months
Refactor incrementally Code works but is hard to change; rules are buried in it Program drifts without a clear end state Medium, spread over time First module in months
Full rewrite Code cannot be tested, platform is a dead end, rules can be rebuilt from behavior and data Long build before any value; missed rules Highest Often a year or more
Replace with a product The process is standard and not a competitive edge Forcing your process into the product License plus migration Depends on configuration

Five questions decide where you land. How healthy is the code: can it be put under tests? Are the business rules written down anywhere, or only in the code? Is there a hard deadline, such as a support end date or an audit finding? Who still understands the system? And can your budget fund a long build before the first release, or does it need value every quarter?

The default: incremental, and when a full rewrite wins

We default to incremental modernization because it keeps risk small and visible. Martin Fowler's strangler fig pattern describes it: new code grows around the old system and takes over its behavior piece by piece until the old system can be switched off, instead of a wholesale replacement that tries to rebuild everything at once, a plan Fowler says fails most of the time (Martin Fowler, 2024). A full rewrite wins only when the assessment shows the platform is a dead end with no supported upgrade path, the code cannot be split into modules that can be tested and replaced one at a time, the business rules can be recovered from behavior and data, and a rewrite costs less over three years than incremental work plus continued maintenance.

A routing layer works for web and API traffic. Batch jobs, desktop clients and logic in stored procedures need other seams: running the old and new job on the same input and comparing results, putting an abstraction in the code so either implementation can sit behind it, or intercepting events and messages at the integration layer. The assessment picks the seam for each module.

When replacing with a product is the right answer

If the system runs a standard process such as general ledger, payroll or basic CRM, a product may beat any rebuild. The case for custom code is a process that sets you apart or a product that would force expensive workarounds. Our page on custom ERP and CRM development sets out that build versus buy decision in detail.

What modernization costs and how long it takes

Be wary of anyone who quotes a firm number for modernization before reading your code. What you can know up front is how the approaches compare and what moves the cost.

This table shows how scope, effort and duration change across the four common approach tiers.

Approach tier Typical scope Team involved What sets the duration Cost position
Assessment only Code, data and architecture audit with a decision memo Small senior team Size of the codebase and access to people Lowest
Replatform with light refactor Move to a supported runtime and database, fix what breaks Small team, QA heavy Number of platform dependencies Low to medium
Module-by-module refactor Strangler migration of the core, one capability at a time Cross-functional team Number of modules and length of each parallel run Medium, spread over phases
Full rewrite of a core system New system rebuilt from recovered rules and data Full product team Rule discovery and data migration Highest

For outside anchors, Keyhole's 2026 benchmarks put enterprise-grade, compliance-heavy software at $300,000 to more than $1,000,000 over 8 to 18+ months, a market range, and annual maintenance at 15 to 25 percent of the original build cost (Keyhole Software, 2026). Those are general custom software figures, not modernization-specific ones, so treat them as a reference point for a full rewrite of a core system, not as a ceiling or a quote. The assessment can run as a fixed-scope project. Build phases can run as fixed-scope projects or on time and materials, and a dedicated team suits a long module-by-module program. Our custom software development cost guide for 2026 breaks the drivers down further, and the pricing page explains how our engagement models are billed.

The cost of standing still is also real. The US Government Accountability Office found that federal agencies typically report spending about 80 percent of more than $100 billion in annual IT spending on operating and maintaining existing IT, and it identified 11 legacy systems most in need of modernization out of 69 reviewed (GAO, 2025). Your numbers will differ, but the pattern of maintenance crowding out new work is common.

The biggest cost drivers are undocumented business rules, dirty or inconsistent data, the number of integrations, compliance evidence your auditors expect, and how long each parallel run must last before the business trusts the new code.

The team a modernization needs

Modernization needs more senior judgment than a greenfield build, because most of the hard decisions are about what the old system really does. A typical team includes these roles:

  • Architect or tech lead: owns the target design, the routing layer and the order in which modules move.
  • Senior back-end engineers: read the old code, write characterization tests and build the replacement modules.
  • QA automation engineer: turns current behavior into regression tests and runs the reconciliation checks. Our QA and testing service covers this work on its own as well.
  • DevOps engineer: builds the pipeline, environments, monitoring and the switch that routes traffic between old and new.
  • Business analyst, part time: interviews users and records the rules the code reveals.

Team size and the mix of roles change by phase. The assessment needs a small senior team; a parallel run needs QA and DevOps more than new feature builders. Ask any vendor for a named role plan per phase, not a single headcount for the whole program.

How a modernization runs, phase by phase

Every engagement starts from a written scope that both sides agree before build work begins. For modernization, that scope comes out of the first phase. The length of each later phase is set in the assessment, because it depends on your system.

Phase 1: assessment

Output: a code and architecture audit, a dependency map, a data map, a risk register, a decision memo (rehost, replatform, refactor, rewrite, replace, retain or retire) and a phased plan with a cost and week range per phase. You should be able to hand this plan to any team.

Phase 2: safety net

Output: characterization tests that record how the system behaves today, a CI pipeline, and logging and monitoring on the old system. After this phase, every change can be measured against current behavior.

Phase 3: module-by-module migration

Output: new modules deployed behind a routing layer, running in shadow alongside the old code. Phases 3 and 4 repeat for each module: build, parallel run, reconcile, switch, keep the rollback path open. The old path stays in place until the new one has proven itself.

Phase 4: parallel run and cutover, per module

Output: reconciliation reports. Both systems process the same live inputs, and their outputs are compared: record counts, totals, documents generated, messages sent. The shadow system runs with its side effects captured, not executed: emails, payments, partner API calls and documents are recorded for comparison but never sent twice. Cutover happens only after reconciliation passes and you sign off. A rollback path is kept open for an agreed window after each switch. While old and new code run side by side, each type of record has one system of record at a time. Changes flow to the other side through change data capture or an integration layer, never through two systems writing the same table independently. That sync runs in both directions during the rollback window, so switching back does not lose anything written after cutover.

Phase 5: decommission and handover

Output: the old system retired, its data archived to your retention rules, and documentation, runbooks and architecture records your own team can work from.

Why modernization projects fail and how the plan guards against it

Most failures trace back to a few causes, and each has a control:

  • Business rules nobody recovered: characterization tests record what the system does today, so a missed rule shows up as a failing test.
  • Big-bang cutover: parallel runs and per-module switches replace one risky weekend.
  • Data quality surprises: trial migrations on masked copies and signed-off reconciliation surface bad records early.
  • Scope drift with no end state: the assessment defines the target state and the order of modules.
  • Knowledge locked in the vendor: documentation, runbooks and paired sessions put it in your team's hands.

Data is where most of the risk sits

Code can be rewritten and redeployed. Lost or corrupted records usually cannot be recovered. That is why data gets its own track from day one: field-level mapping, cleansing rules agreed with the business, trial migrations on masked copies, and reconciliation you can audit.

Security debt moves with the system unless it is planned for. Old applications often hold secrets in config files, use outdated authentication and store passwords with weak hashes. The plan moves secrets into a managed vault, connects sign-in to your identity provider where possible, and upgrades password hashes gradually as users sign in, so nobody is forced through a mass password reset at cutover.

AI coding tools can speed up reading old code and drafting tests, but their output is a draft that must pass the same characterization tests and reconciliation as hand-written code. Agree in writing which tools may touch your code and whether your source is sent to a third-party model provider. For larger estates, or when the new system feeds reporting and analytics, our data engineering and analytics service shapes the target model and pipelines.

What to modernize into

The target stack should be boring in the best sense: supported, widely hired for and on a long-term support release. For a .NET estate that today means .NET 10 LTS; for PHP, 8.5 or 8.6, which carry security fixes to the end of 2029 and 2030; for Java, a current LTS release of the JDK with a maintained framework. Some platform features do not carry over and decide the approach on their own. ASP.NET Web Forms and anything built on System.Web have no equivalent in modern .NET, so those parts are rebuilt even inside a replatform. WCF server hosting is not part of modern .NET either; services either move to the separate CoreWCF project or are rebuilt as gRPC or HTTP APIs. Java EE code must move from the javax to the jakarta namespace. The assessment should list these blockers by module. Pick the target for your hiring market and your operations team, not for novelty.

Hosting is a separate choice. Our cloud and DevOps service handles infrastructure, CI/CD and monitoring, whether the modernized system moves to a public cloud or stays on your own servers.

Where modernization matters most

Financial services often combine old core systems with demanding expectations on change control, audit trails and data retention. Core ledgers, payment flows and reporting engines cannot simply be switched off and on again, so parallel runs and reconciliation are not optional there. See our fintech industry page for how we approach regulated financial software. Insurance, logistics and healthcare systems raise similar questions about policy, routing and records data.

How to judge a modernization partner before the build

Judge any vendor, us included, on the assessment itself: ask to see what an assessment report and decision memo contain, ask who will write it, and ask how its findings will be tested before you commit to a build.

Who owns the code and the knowledge afterward

Modernization fails quietly when the new system ends up as opaque as the old one. The code and intellectual property we write for you are assigned to you in the contract, and source code repositories and cloud accounts are set up in your name, so you control who has access and can revoke it. Before you share code, we sign a mutual NDA on request. Knowledge is handed over as documentation, runbooks and paired sessions with your engineers from the safety-net phase onward, not in a single meeting at the end. Our code ownership and security terms set out how access, secrets and intellectual property are handled.

Questions to ask any modernization vendor

Use these on every shortlisted firm, including us:

  1. Will you read our code and data before quoting the build, and what does the assessment produce?
  2. Which option would you recommend against for our system, and why?
  3. How will you capture current behavior before changing anything?
  4. What does the parallel run compare, and who signs off on the reconciliation?
  5. What is the rollback path after each cutover, and how long is it kept open?
  6. In whose name are the repositories, cloud accounts and databases set up?
  7. Who will lead the work on our system, and what will they need from our team during the assessment?
  8. Will you sign a mutual NDA before we share code? We sign one before detailed project discussions on request.
  9. Which AI coding tools will touch our code, where does our code go, and how is AI-generated code verified?

If you want to compare billing structures before talking to anyone, the guide to fixed price versus time and materials explains how each model handles the uncertainty a legacy system brings. When you are ready, book a call about your legacy system and bring the questions above.

Questions buyers ask

Should we rewrite our legacy application or refactor it?

Refactor incrementally by default. Rewrite only when the assessment shows the platform is a dead end with no supported upgrade path, the code cannot be split into modules that can be tested and replaced one at a time, the business rules can be recovered from behavior and data, and a rewrite costs less over three years than incremental work plus continued maintenance. Check code health, how well the rules are documented, any support or compliance deadline, who still understands the system, and whether your budget can fund a long build before the first release.

How much does legacy application modernization cost?

It depends on the approach, the number of modules, the state of the data and how much behavior is undocumented. Keyhole puts enterprise-grade software at $300,000 to over $1,000,000 across 8 to 18 months or more, a reasonable reference point for a full rewrite of a core system, with no fixed upper limit. A replatform with light refactoring usually costs less than a full rewrite. Any firm quote given before someone has read the code and mapped the data is a guess.

How long does a legacy modernization project take?

The assessment comes first. Its length depends on the size of the codebase, the state of the data and how quickly the people who know the system are available. After that, the timeline depends on how many modules you have, how tangled they are and how long each parallel run needs to prove the new code. A good plan puts the first module into production early, so you see value before the whole program is finished. The assessment should give you a week range per phase.

Can you modernize the system without downtime?

For most of the work, yes. A routing layer sends traffic to new or old code one capability at a time, both versions run on live data, and outputs are compared before anything switches over. The honest exception is data. Moving the final records of a large database sometimes needs a short planned cutover window, agreed in advance and scheduled for your quietest period, with a tested rollback.

Our original developers have left and there is no documentation. Can you still work with it?

Yes. Missing documentation is common in legacy systems, and the work starts by recovering what the system actually does. We write characterization tests that record what the system does today, read the code and database to map the business rules, and interview the people who use it daily. We need read access to the source code, a copy of the database or a masked extract, access to a test environment, and time with a few key users.

Do we need to move to the cloud as part of modernization?

No. Hosting and code are separate decisions. Some systems move to the cloud first with few code changes, others are modernized and stay on your own servers, and some do both in stages. Decide on hosting from cost, data residency rules and your operations team's skills, not because a modernization program is running at the same time.

What happens to our data during migration?

Data gets its own plan. We map every table and field to the new model, run trial migrations on copies, and produce reconciliation reports that compare record counts, totals and sample records between old and new. You sign off on each reconciliation before cutover. Data protection rules in your region can limit where copies are stored and how they must be protected, so confirm the specifics for your data with your counsel.

Who owns the new code and the old code during the project?

You do. The code and intellectual property we write for you are assigned to you in the contract, and the source repositories and cloud accounts are set up in your name, so you control access to them. Your existing legacy code stays yours; we only need access to it.

What if the assessment says we should not modernize?

Then that is the answer the assessment exists to give. Some systems are better retained, retired or replaced with a product. A good assessment report explains why, lists the risks of standing still, and gives you a plan you can hand to anyone.

Sources

  1. Keyhole Software Custom Software Development Cost: 2026 Pricing & Timeline Benchmarks Accessed November 24, 2026
  2. Microsoft Learn Microsoft .NET Framework lifecycle Accessed November 24, 2026
  3. Microsoft .NET and .NET Core official support policy Accessed November 24, 2026
  4. The PHP Group PHP supported versions Accessed November 24, 2026
  5. US Government Accountability Office Information Technology: Agencies Need to Plan for Modernizing Critical Decades-Old Legacy Systems (GAO-25-107795) Accessed November 24, 2026
  6. AWS Prescriptive Guidance About the migration strategies Accessed November 24, 2026
  7. Martin Fowler Strangler Fig Accessed November 24, 2026

What do you need built?

Start with the system you have and the change you want to make. We reply with questions, not a pitch.

Discuss your project