Skip to content

Cloud migration strategies: from rehost to refactor

B2Bnetwork team · · 6 min

Integrations, data and cloud

In brief

Cloud migration is planned application by application, not as a single decision for the whole company. Each application is assigned one of seven strategies: retire, retain, move unchanged (rehost), move the whole platform (relocate), buy a ready-made service (repurchase), move with minor changes (replatform) or rebuild (refactor). Rehost and relocate are the fastest, refactor usually brings the greatest gain, but also costs the most and takes the longest.

Seven strategies in one table

The list of seven strategies, called the “7 Rs” after their first letter, comes from AWS migration guides, but the same categories are used with any cloud provider.

StrategyWhat happens to the applicationCost and timeTypical case
Retirewe switch it offlowesta report nobody has read for a year
Retainit stays where it isno migrationa system with a license contract until the end of its term or with a hard location requirement
Rehostwe move the machines unchangedlowan application server on a virtual machine
Relocatewe move the whole platform, for example virtualization, to its cloud equivalentlowa farm of virtual machines moved as a whole
Repurchasewe replace it with a ready-made SaaS servicedepends on licensingan in-house mail system or CRM
Replatformwe move it with a few changes, for example the database to a managed servicemediuma web application with a PostgreSQL database
Refactorwe rebuild the architecture for the cloudhigha sales system with highly variable traffic

Rehost and relocate: fast, without changing how it is run

Rehost, also called “lift and shift”, moves servers with no changes to the application. It is the fastest route when you have to leave a data center by a set date, for example before a colocation contract ends. Relocate goes further: it moves the whole virtualization platform to its cloud equivalent, without moving machines one by one.

Both strategies also carry over all existing problems. An application that needed a manual restart once a week on your own hardware will need it just the same in the cloud. The cost can be higher than before the migration, because machines sized “with headroom” for your own server room now pay for that headroom every hour. That is why rehost makes sense as a stage followed by optimization, described in the article FinOps: how to keep cloud costs under control.

Replatform: small changes, a clear gain

Replatform leaves the application code mostly unchanged but replaces the components that are better bought as a service in the cloud. Typical changes:

  • a database on a virtual machine replaced by a managed service with automatic backups;
  • files on a local disk moved to object storage;
  • the application packaged in a container and run on a container platform;
  • logs and metrics sent to a monitoring service instead of files on a server.

Replatform usually gives the best ratio of effect to effort. The team stops being responsible for database system patches, backups and part of scaling, and the risk of changes to business logic is small. In return, you have to test what changed: the database engine version, the behavior during failover of a managed service and response times after the network change. Regression and performance tests before the cutover cost less than a night of rolling back the migration.

Refactor: when a rebuild pays off

Refactor means changing the architecture: splitting into smaller services, events instead of synchronous calls, automatic scaling, serverless services. It pays off when the application needs major business changes anyway or when the current architecture blocks development, for example a shop that has to be manually expanded with more servers before a sales peak.

In large migrations, refactor rarely goes in the first wave, because it combines two risks at once: a change of infrastructure and a change of application. More often a rehost or replatform comes first, and the rebuild is carried out later, step by step. When plain modernization is enough and when splitting into services makes sense is discussed in the article Modular monolith.

Retire, retain, repurchase: decisions that shorten the list

The cheapest migration is the one you do not have to do. A review of the application portfolio usually reveals systems that can be switched off because another system has taken over their functions, and ones that are better replaced with a SaaS service than moved.

Retain is a deliberate decision, not an omission. A system can stay where it is because it has a license agreement until the end of its term, needs hardware that is not available in the cloud, like some IBM i or mainframe systems, or its data cannot leave a given location. In banks and insurers, supervisory requirements for ICT providers also apply; their impact on the migration plan is covered in the articles Cloud in the financial sector and Register of contracts with ICT providers under DORA.

How to assign a strategy to each application

A migration plan is a table with a row for every application. For each one, it is worth establishing:

  1. Value and business plans. Whether the system will be developed over the coming years or only maintained.
  2. Dependencies. Which systems it communicates with and which must move together, so that high-latency connections over the internet do not appear.
  3. Data. Volume, location requirements, how to move it without interrupting service (more in the article Migrating customer data without interrupting service).
  4. Availability requirements. Acceptable downtime during cutover and the rollback plan.
  5. Strategy and wave. One of the seven strategies and the date when the application moves.

An example plan for a bank's environments is described in the scenario migrating development and test environments to a hybrid cloud. At telecom operators, the order of waves is usually set by BSS and OSS systems, which we cover in the article Operator systems in the cloud.

Questions and answers

Which strategy should you start with?

Start with a portfolio review and retire whatever nobody uses. The first wave usually consists of low-risk applications with few dependencies, moved by rehost or replatform. The team learns the process, the tools and the new way of operating on them before moving on to critical systems.

Does rehost lower costs?

By itself, usually not. Machines moved one to one pay in the cloud for full capacity around the clock, even when they do not need it. Savings appear only after right-sizing, shutting down environments outside working hours and moving to managed services. Treat rehost as a first step, not a goal.

Is hybrid cloud just a transitional stage?

Not always. In many companies part of the systems stays permanently in their own data center, for example because of data location requirements, specialized hardware or the cost of a constant, heavy load. Then hybrid cloud is the target architecture and requires permanent network links, a shared identity and one monitoring system.

How long does a cloud migration take?

A single application moved by rehost can be moved in a few weeks. Migrating the whole portfolio in a large company usually takes from over a year upward and proceeds in waves. The timeline is decided more by dependencies between systems, data migration and maintenance windows than by the technique of moving machines.

What it looks like in a project

Connecting systems or moving them to the cloud? Talk to an architect.

Let's talk

Read more: Integrations, data and cloud