← All field notesCloud Migration

Lift and shift or refactor? How to choose for each application

Araadhita Dewan ·

Laptop with code on the screen in a dark room

Lift and shift is the fastest way to move an application to the cloud. Refactoring is the way to make it cheaper and easier to run once it is there. Most companies need both, and the expensive mistakes come from using one where the other fits. This guide gives you a simple way to decide, application by application, and explains the middle path that many teams forget about.

What is lift and shift?

Lift and shift, also called rehosting, means moving an application to the cloud without changing its code. The servers it ran on are recreated in the cloud, the data is copied across, and the application runs as it did before. Nothing about how it works changes. Only where it runs.

The appeal is speed and predictability. Because the code doesn't change, the risk of introducing new bugs is low, and the same steps can be repeated across many applications. That makes lift and shift a good fit for large migrations with a fixed deadline, such as a data center lease that ends on a known date.

What is refactoring?

Refactoring means changing the application's code so it takes advantage of the cloud. That might mean splitting one large application into smaller services, letting it scale up and down with demand, moving its data to a managed service, or rebuilding the part that fails most often.

Refactoring costs more time and effort up front. In return, the application can become cheaper to run, easier to change, and more reliable. The payoff is real, but only for applications that matter enough to justify the work.

The middle path: replatforming

Between the two sits replatforming: moving an application with a few targeted changes, without rewriting it. The most common example is moving a self-managed database to a managed cloud database, so your team stops patching and backing it up by hand. The code stays mostly the same, but the day-to-day work of running it drops.

Many applications that seem to need a full rebuild only need this. Before you commit to refactoring, ask whether a few small changes would remove most of the pain.

The three paths side by side

Lift and shift Replatform Refactor
Code changes None A few, in targeted places Significant
Speed to move Fastest Fast Slowest
Risk during the move Lowest Low Highest
Running cost afterward Same habits as before Lower for the part you changed Can be lowest, if designed well
Best for Stable apps with a deadline Valuable apps with one costly part Core apps that change often
How the three migration paths compare. Your own applications will vary, so treat this as a starting point.

Four questions that point to the right choice

1. How important is the application to the business?

If it supports a core process that changes often, like ordering, billing, or customer-facing services, investment in refactoring can pay back for years. If it supports a stable back-office task, moving it as it is is usually enough.

2. How often does it change?

Applications that your team updates every week benefit most from being easier to change. Applications that nobody has touched in years rarely do. Frequent change is one of the strongest signals for refactoring.

3. What is it costing you today?

Look at hosting, licenses, support hours, and the time spent on manual fixes. If an application is expensive mainly because it is oversized or hard to run, replatforming or refactoring can fix the cause. If it is cheap and stable, lift and shift keeps it that way.

4. Is there a deadline?

A data center exit or contract end date changes the maths. Under a hard deadline, moving first and improving later is often the right order. You can refactor in the cloud after the move, once the pressure is off, as long as the plan says so.

A quick scoring sheet

If your team likes a simple score, rate each application from 1 to 3 on the four questions above, where 3 means very important, changes often, costly today, or no deadline pressure. Add the numbers up.

Total score Usual starting point
4 to 6 Lift and shift, and review again after the move
7 to 9 Replatform the part that costs the most to run
10 to 12 Refactor, with the business case written down first
A worked example of a simple scoring sheet. Adjust the bands to fit your estate.

A score is not a decision. It is a way to start the conversation with the same questions for every application, so the loudest voice in the room doesn't decide by default.

A simple way to sort your applications

Put each application into one of three groups:

  • Move as it is: stable, low change, works well, and nothing urgent to fix.
  • Move with small changes: valuable and stable, but one or two things make it costly or risky to run, such as a self-managed database.
  • Rebuild parts: central to the business, changes often, and its current design is holding the team back.

In most estates, the first group is the largest and the third is the smallest. If your third group is large, look again. Teams often overestimate how many applications truly need rebuilding.

Mistakes that cost the most

Refactoring everything. It is tempting to fix every old system during the move. The result is a migration that takes years instead of months, with the business waiting the whole time.

Lifting and shifting without a follow-up plan. Moving an application as it is can be the right first step. Stopping there, when the application is costly to run, means paying cloud prices for data center habits.

Deciding without the people who use it. The engineers know how hard an application is to change. The users know what would break. You need both views before you choose.

Forgetting the data. The code is often the easy part. Large databases, file shares, and the links between applications take the most planning, whichever path you choose.

How to keep the business running during the move

Whichever path an application takes, plan the move in stages. Test each application in its new home before switching real traffic to it. Keep the old version available until the new one has proved itself. Agree in advance what would make you roll back, and who decides. These habits matter more than the choice between lift and shift and refactoring, because they protect the people who depend on the application every day.

Where Achyuraa fits in the choice

Choosing a path is the easy part to write about. Carrying it out without disrupting the people who rely on the application is the hard part, and that is the work our Modernization team does every day.

Modernization carries out whatever has been decided for each application: moving it as it is, moving it with small changes, rebuilding parts of it, replacing it, or keeping it in place and connecting it to what moved. The work happens in stages, so the application keeps running while it is upgraded. We agree the exact approach with your team before anything starts, and you see each stage working before the next one is quoted.

When the job is many applications rather than one, the Factory Model moves them in planned batches. Every batch follows the same steps and checks, security and compliance rules are built into the migration templates from the start, and production traffic switches over only after a batch passes its checks. Refactoring is built in as a stage, so an application that needs code changes gets them as part of its move rather than as a separate project later.

If you aren't sure which path each application needs, start one step earlier with App Rationalization. It reviews every application and gives each one a decision with a written reason, which is exactly the input this choice needs.

Once an upgraded application is live, Managed Services can look after it around the clock. If your own team will run it instead, tell us early, so the work is planned around the tools and skills your team already has.

Pricing follows the work each application needs. Moving an application with small changes costs far less than rebuilding parts of it, and each stage can be priced as fixed, variable, or a mix. Book a free 30-minute call and bring the application that is giving your team the most trouble. We'll tell you honestly which path we'd take with it, and why.

Have a problem like this?

Tell us about it on a 30-minute call. We'll say plainly if we can help.

Book a 30-min call →