Skip to content
GlobalCommit
Modernisation

Application Modernisation: Rehost, Refactor or Rebuild?

By Global Commit Editorial TeamPublished 8 min read

In short

An application modernisation strategy decides, for each application, whether to rehost, replatform, refactor, rebuild, replace or retire it, based on business value, technical health, risk and cost. Rehost when a deadline drives the move, refactor applications that differentiate your business and change often, rebuild only when the code cannot be saved, and replace commodity capabilities with SaaS.

Key takeaways

  • Decide application by application; a portfolio of hundreds of systems rarely needs one answer, and forcing one usually wastes money.
  • Score each application on business value and technical health, then use the quadrant as the default path and review it with the owner.
  • Rehosting is fast but changes little, so it pays off mainly when a data centre exit or end-of-support date sets the deadline.
  • Refactor incrementally with the strangler fig pattern instead of a big-bang rewrite, and write tests before you change legacy code.
  • Count dual-running costs, licensing changes and team skills in the business case, not just the target infrastructure bill.

Most application portfolios mix three kinds of systems: those that run the business, those that differentiate it, and those nobody has touched in years. An application modernisation strategy treats each kind differently. Instead of one programme-wide answer, it decides application by application whether to rehost, replatform, refactor, rebuild, replace, retain or retire, then sequences the work so value arrives early and risk stays contained.

This guide defines each path with concrete examples, shows how to score your portfolio and covers the patterns that keep refactoring safe.

The modernisation paths, defined

These options map closely to the “7 Rs” used in cloud migration planning, which we explain in Cloud Migration Strategy: The 7 Rs Explained. Here the focus is on what happens to the code and architecture, not only on where the application runs.

  • Rehost. Move the application to cloud infrastructure without code changes. Example: a Windows Server and IIS web application moved as-is to virtual machines on AWS or Azure.
  • Replatform. Make targeted changes to use managed services while keeping the core architecture. Example: the same application moved to Azure App Service or containers, with its SQL Server database moved to a managed database service.
  • Refactor. Change the code and architecture to improve agility, scalability or resilience. Example: the order-processing module of a Java monolith extracted into its own service with its own data store, running on Kubernetes or serverless containers.
  • Rebuild. Rewrite the application on a modern stack while keeping its purpose. Example: a VB6 or Oracle Forms application rebuilt as a web application with documented APIs.
  • Replace. Swap a custom application for a SaaS product. Example: a home-grown expense or HR system replaced by a commercial SaaS platform.
  • Retain. Keep the application where it is for now, secured and monitored, usually because it has a planned end of life or a dependency that cannot move yet.
  • Retire. Switch the application off because its function exists elsewhere or nobody needs it.

Rehost vs replatform vs refactor vs rebuild vs replace

Path Effort Time to value What improves Main risk
Rehost Low Weeks Data centre exit, infrastructure agility Old problems move too; costs may rise
Replatform Low to medium Weeks to months Less patching, managed backups, easier scaling Hidden dependencies on the old platform
Refactor Medium to high Months, in increments Release speed, scalability, resilience Scope creep or a distributed monolith
Rebuild High Months to years Everything, if it is delivered Feature gaps and a long wait for value
Replace Medium Months No custom code to maintain Process fit, data migration, vendor lock-in

No path is better in general. Rehosting is the right call when a lease, contract or end-of-support date sets the deadline. Refactoring is the right call when an application is central to how you compete and the business keeps asking for changes. Most portfolios need every path somewhere.

Five criteria that should drive each decision

  1. Business value and differentiation. Does the application support how you win and keep customers, or is it a commodity capability that any SaaS product could provide? Differentiating applications deserve investment; commodity ones usually do not.
  2. Rate of change. How often does the business need changes, and how long do they take today? A stable application that changes twice a year rarely justifies refactoring.
  3. Technical health. Look at code quality, automated test coverage, the support status of frameworks and runtimes, open security findings and how many people understand the code.
  4. Constraints and deadlines. Data centre exits, end of support for an operating system or database, audit findings and contract renewals often set the timeline before architecture does.
  5. Cost and licensing. Count infrastructure, licences, support contracts and the people needed to keep the application running. Check licence mobility rules before you move commercial software to a public cloud, because some licences cost more, or are restricted, on certain providers.

Team skills cut across all five. A refactoring plan that assumes container and cloud-native skills your team does not yet have needs training or outside help built in from the start.

Score the portfolio with a value and health matrix

Plot each application on two axes, business value and technical health, and use the quadrant as its default path. Then review the default with the application owner rather than applying it mechanically.

Good technical health Poor technical health
High business value Invest: replatform or refactor to speed up change Modernise: refactor incrementally, or rebuild if the code cannot be saved
Low business value Tolerate: rehost or retain at minimum cost Eliminate: retire, or replace with SaaS

A review like this often surfaces a sizable group of applications that can be retired or consolidated. Those decisions cost little, and they free budget and attention for the high-value work.

Consider a mid-size insurer with three applications on ageing on-premises servers:

  • Policy administration scores high on value and poorly on health: it is core to the business, built on an old Java framework with few tests, and changed every sprint. The path is incremental refactoring. Wrap it with an API layer, extract the quoting module first because it changes most often, and run that module in containers with its own database.
  • Document archive scores low on value and well on health: stable, rarely changed and needed for compliance. Rehost or replatform it onto managed storage, then leave it alone.
  • A custom leave-request tool scores low on both and duplicates what the HR platform already offers. Retire it and move users across.

Three applications, three different paths, and only one of them needs significant engineering investment.

Patterns that make refactoring safe

Big-bang rewrites fail often enough that they should be a last resort. These patterns let you modernise while the existing system keeps running:

  • Strangler fig. Put a routing layer, such as an API gateway or reverse proxy, in front of the legacy application. Build new capabilities as separate services and redirect traffic to them one function at a time until the old system can be switched off.
  • Anti-corruption layer. Translate between the legacy data model and the new one at a clear boundary, so old design decisions do not leak into new services.
  • Characterisation tests first. Before changing legacy code, write tests that capture what it does today, including the odd behaviour users depend on.
  • Decompose data deliberately. Shared databases are the hardest part of breaking up a monolith. Use change data capture or events to keep stores in sync during the transition, and split schemas only once service boundaries are proven.
  • Release safely. Feature flags, canary releases and automated rollback let you shift traffic gradually and recover quickly.
  • Observe before you change. Instrument the current system with logs, metrics and traces so you can compare behaviour before and after each step.

AI coding assistants now help explain unfamiliar legacy code, generate tests and draft conversions between languages and frameworks. They can speed up assessment and testing, but generated code still needs the same review, testing and security checks as any other change.

Build the roadmap in waves

  1. Discover. Inventory applications, owners, dependencies, costs and support dates. Dependency mapping stops you moving an application without the database or batch job it quietly relies on.
  2. Assess and decide. Score each application with the matrix and agree a default path with its owner.
  3. Lay the foundation. Set up the landing zone, identity, networking, CI/CD pipelines, observability and security baseline once, so every wave reuses them. Our platform engineering guide explains how to turn that foundation into self-service golden paths.
  4. Run a pilot wave. Pick two or three applications that represent common patterns and matter to the business, but are not so critical that early problems would hurt.
  5. Scale in waves. Group applications by dependency and pattern, start with quick wins and feed lessons from each wave into the next.
  6. Decommission. Switch off old servers, licences and contracts. Savings exist only once the old estate is gone.

Make the business case complete

A credible business case compares the full current cost with the full target cost and the one-time cost of getting there:

  • Current run cost: infrastructure, licences, support contracts, data centre space and the people who keep the application alive.
  • Target run cost: right-sized cloud resources, managed services, new licensing and operations effort.
  • One-time cost: engineering, testing, data migration, training and change management.
  • Dual-running cost: the months when old and new systems both run, which plans often underestimate.
  • Risk and speed: lower exposure from unsupported software, and faster delivery of the changes the business is waiting for.

Rehosting alone can cost as much as running on-premises, or more, because oversized servers and expensive licences move with the application. Savings come from right-sizing, managed services, autoscaling, licensing changes such as moving from commercial databases to open-source engines like PostgreSQL, and retiring what nobody needs.

Mistakes that stall modernisation programmes

  • Microservices by default. Splitting an application that one team owns into dozens of services often creates a distributed monolith that is harder to change than the original.
  • Modernising code but not delivery. A new architecture with manual deployments and monthly release windows changes little for users.
  • Leaving data until last without a plan. The shared database becomes the bottleneck that stalls everything else.
  • No product ownership. Without an accountable owner, modernisation drifts into a technical project with no business outcome.
  • Ignoring day-two operations. Monitoring, on-call, runbooks and cost controls need to be ready before cutover, not after the first incident.

How Global Commit can help

Global Commit helps you build an application modernisation strategy grounded in your own portfolio data, then delivers it on AWS, Microsoft Azure or Google Cloud. Our application modernisation service covers assessment, rehosting, replatforming and incremental refactoring. Our cloud-native development team rebuilds the applications that need it, using containers, serverless and well-designed APIs.

To see which applications to modernise first and what each path would cost, start with a free assessment.

Sources

  1. Strangler Fig Application pattern — martinfowler.com
FAQ

Frequently asked questions

Straight answers to the questions buyers ask us most. Something missing? Ask us directly.

What is the difference between rehosting, replatforming and refactoring?

Rehosting moves an application to cloud infrastructure with no code changes, usually onto virtual machines. Replatforming makes targeted changes to use managed services, such as a managed database or container platform, without changing the core architecture. Refactoring changes the code and architecture itself, for example extracting services from a monolith, to gain release speed, scalability and resilience.

When should you rebuild an application instead of refactoring it?

Rebuild when the capability still matters but the existing code cannot reasonably be improved: an unsupported language or framework, no tests, nobody who understands it, or an architecture that blocks every change. Even then, rebuild incrementally behind the old system's interfaces so users move over in stages rather than in one risky cutover.

What is the difference between application modernisation and cloud migration?

Cloud migration changes where an application runs, while application modernisation changes how it is built and operated. A migration can be a pure rehost with no code changes. Modernisation replatforms, refactors or rebuilds the application so it is cheaper to run and faster to change. Many programmes do both: they migrate first to meet a deadline, then modernise the applications where the extra investment pays back.

Does moving applications to the cloud reduce costs?

Not by itself. A straight rehost can cost as much as running on-premises, or more, because oversized servers and expensive licences move with the application. Savings come from right-sizing, managed services, autoscaling, licensing changes and retiring applications nobody needs, so build those levers into the plan deliberately.

What is the strangler fig pattern in application modernisation?

The strangler fig pattern replaces a legacy system gradually. You place a routing layer in front of the old application, build new functionality as separate services and redirect traffic to them one capability at a time. The legacy system shrinks until it can be switched off, which avoids a risky big-bang rewrite and delivers value continuously.

Related services

More insights

Get a free Cloud & AI assessment

One working session with a senior architect: your goals, your current cloud and data estate, the quickest wins for cost, security and AI, and a practical next step. No obligation.