The Wild

5 Rs of Cloud Migration Explained Clearly

· 6 min read · Mammals

In this article
  1. Why the 5 Rs Matter
  2. The Six Strategies in Detail
  3. How to Choose the Right Strategy
  4. Common Misconceptions and Pitfalls
  5. Costs and Trade-offs
  6. Alternatives and Extensions to the 5 Rs
  7. Frequently Asked Questions

The 5 Rs of cloud migration are Rehost, Replatform, Repurchase, Refactor, Retire, and Retain. These six strategies, originally defined by Gartner, give organizations a framework for deciding what to do with each application when moving to the cloud—whether that means moving it as-is, modifying it, replacing it, or leaving it alone.

Why the 5 Rs Matter

Cloud migration is rarely a single decision. A company might have hundreds or thousands of applications, each with different technical debt, business value, and compliance requirements. The 5 Rs force teams to evaluate each application individually instead of applying a one-size-fits-all approach. Without such a framework, teams often default to “lift and shift” everything, which can lead to higher costs and missed opportunities for optimization. Conversely, trying to refactor everything can delay projects for months. The 5 Rs provide a shared vocabulary so that IT, finance, and business leaders can discuss trade-offs clearly.

The Six Strategies in Detail

  • Rehost (Lift and Shift): Move the application to the cloud without changing its architecture. This is the fastest and least risky option. For example, a legacy .NET app running on Windows Server can be moved to an Azure VM with minimal changes. It’s ideal when you need to retire a data center quickly or when the application is stable and doesn’t need new features.
  • Replatform (Lift, Tinker, and Shift): Make small, targeted changes to gain cloud benefits without a full rewrite. For instance, you might move a database from a self-managed Oracle instance to Amazon RDS for Oracle, which handles backups and patching automatically. This reduces operational overhead while keeping the core code intact.
  • Repurchase (Drop and Shop): Replace the application with a commercial off-the-shelf (COTS) product, often a SaaS solution. For example, migrating from an in-house CRM to Salesforce or from an on-premises HR system to Workday. This eliminates the need to maintain custom code but requires change management for users.
  • Refactor (Re-architect): Rewrite or significantly modify the application to be cloud-native, often using microservices, containers, or serverless functions. For example, splitting a monolithic e-commerce platform into separate services for inventory, payments, and user accounts. This is the most expensive and time-consuming option but unlocks the greatest scalability and cost efficiency.
  • Retire: Decommission applications that are no longer needed. Many organizations discover that a significant portion of their portfolio is unused or redundant. For example, an internal reporting tool that nobody has logged into for two years can be turned off, saving licensing and maintenance costs.
  • Retain (Revisit): Keep the application on-premises for now. This might be due to regulatory data residency requirements, latency concerns, or because the application is being phased out soon. Retained applications are often revisited in a later migration wave.

How to Choose the Right Strategy

Selecting the right R for each application involves evaluating several factors:

  1. Business criticality: Is the application essential to daily operations? Mission-critical apps may favor rehost or replatform to reduce risk.
  2. Technical condition: Is the code well-structured or a tangled mess? Poorly structured code may be a candidate for repurchase or refactor.
  3. Cloud readiness: Does the app rely on legacy dependencies (e.g., mainframe, specific hardware)? If so, rehosting may be difficult.
  4. Cost and time constraints: Rehost is fastest; refactor is slowest. If you have a deadline to exit a data center, rehost may be the only feasible option.
  5. Future roadmap: If the application is slated for replacement in two years, retaining it may be smarter than refactoring.

Many organizations use a scoring matrix to rank applications against these criteria, then group them into migration waves. For example, a bank might rehost its core transaction system first (to meet a regulatory deadline), replatform its customer portal next, and refactor its analytics platform later.

Common Misconceptions and Pitfalls

A frequent misconception is that rehosting saves money immediately. In reality, moving an application to the cloud without optimizing it can increase costs because you still pay for idle capacity, and you lose the sunk cost of on-premises hardware. Another pitfall is treating the 5 Rs as a one-time decision. An application you retain today might be a candidate for refactoring next year when the business case changes. Also, don’t assume that “retire” means failure—it’s a legitimate outcome that reduces waste. Finally, teams often forget to account for data migration complexity. Even a simple rehost can be delayed by large databases that take days to transfer over limited bandwidth.

Costs and Trade-offs

Each R has a different cost profile. Rehost has low upfront engineering cost but may lead to higher operational costs in the long run. Replatform has moderate upfront cost but can reduce operational overhead (e.g., managed databases). Repurchase has a recurring subscription cost but eliminates most maintenance. Refactor has high upfront cost but can dramatically reduce infrastructure costs through auto-scaling and serverless pricing. Retire has a negative cost—it saves money. Retain has no migration cost but keeps you paying for on-premises infrastructure. A practical approach is to estimate total cost of ownership (TCO) over three years for each option, including migration, licensing, and operational expenses.

Alternatives and Extensions to the 5 Rs

Some organizations extend the framework to 7 Rs, adding Relocate (moving applications to the cloud without re-architecting, often using hypervisor-level migration tools like VMware Cloud on AWS). Others use a simpler 3-R model (Rehost, Refactor, Replace) for smaller portfolios. The 5 Rs are not a rigid rule but a starting point. For example, a hybrid approach is common: rehost a legacy app while refactoring a newer service in the same portfolio. The key is to ensure that every application has an explicit strategy, rather than leaving it to chance.

Frequently Asked Questions

What is the difference between rehost and replatform?

Rehost moves an application to the cloud with no changes—it’s like lifting a physical server and placing it in a cloud VM. Replatform makes small, deliberate changes to take advantage of cloud services, such as switching to a managed database or using a load balancer. The core code remains the same, but the operational environment is improved.

Can I use more than one R for a single application?

Yes. For example, you might rehost a web server while replatforming its database. In practice, large applications are often broken into components, each with its own strategy. The 5 Rs apply at the application or component level, whichever makes sense for your architecture.

How long does a typical cloud migration take?

There is no standard timeline because it depends on the number of applications, their complexity, and the chosen strategy. A single rehost can take a few days, while a complex refactor can take months. Most enterprise migrations run in waves over 6 to 18 months, but this varies widely.

Is the 5 Rs framework only for AWS?

No. The framework was popularized by Gartner and is used across all major cloud providers, including Azure, Google Cloud, and IBM Cloud. The specific services you use will differ, but the decision-making logic is the same.

What should I do with applications that are retained?

Retained applications should be reviewed periodically. Set a reminder to re-evaluate them every 6 to 12 months, or when major business or technical changes occur. Also, ensure they are still supported and secure, even if they stay on-premises.