Skip to content

Field Guide

The 7 Rs of migration: retire, retain, rehost and the rest

Before arguing about rewriting, sort every system into one of seven answers. Most of them are not rewrites, and the cheapest one is switching something off.

Slide: the seven migration strategies in a row, retire, retain, rehost, relocate, repurchase, replatform and refactor, from least change to most.

AWS's guide for large migrations opens with the list: "There are seven migration strategies for moving applications to the cloud, known as the 7 Rs." The list is about cloud moves, but it works as a checklist for any Gen 1, because it puts a rewrite last among seven options instead of first among two.

The seven

  • Retire. Decommission or archive. AWS's signals include applications where "there has been no inbound connection to the application for the last 90 days." This is killing Gen 1 with no Gen 2.
  • Retain. Keep it where it is, for now. Reasons AWS lists include compliance, high risk, unmet dependencies and no business value in moving.
  • Rehost. AWS calls it by its other name too: "lift and shift." You move the application "without making any changes to the application."
  • Relocate. Move many servers at once from an on-premises platform to a cloud version of the same platform. AWS says it "doesn't require that you purchase new hardware, rewrite applications, or modify your existing operation."
  • Repurchase. Also "drop and shop": "You replace your application with a different version or product," often a service you subscribe to.
  • Replatform. Also "lift, tinker, and shift": move it and make some optimizations, such as moving a database to a managed service.
  • Refactor or re-architect. Change the application to fit the new platform. This is the one that becomes a rewrite.

Order of effort

Roughly, the list runs from no change to total change. Each step to the right costs more, takes longer and risks more, and each also removes more of the old design. The useful question for every system is the same one this site asks everywhere: what is the leftmost answer that solves the actual problem?

AWS draws the same line for big moves: "Refactor is not recommended for large migrations because it involves modernizing the application during the migration." Its advice is to rehost, relocate or replatform first and modernize afterward.

How it maps to this guide

Strategy The closest page here
Retire Killing Gen 1
Retain Rewrite vs refactor, the "leave it alone" option
Rehost, relocate, replatform Lift and shift
Repurchase Selling a rewrite: buying is a proposal too
Refactor Strangler fig or a rewrite

When not to use it

  • There is one system and one question. A seven-way sort is for a portfolio; for one system, compare the four options in rewrite vs refactor.
  • Nobody knows what the systems do. Take inventory first, or every answer is a guess.
  • The move has already been decided for you, for example by a contract or a data center closing. Spend the effort on how, not which.

Checklist

  • Every application has one of the seven answers and a named owner.
  • Retire candidates are checked against usage data, not memory.
  • Anything marked refactor states the problem that nothing further left would solve.
  • Retained systems have a date to look at them again.

Sources

  1. About the migration strategies - AWS Prescriptive Guidance - the seven strategies, their definitions and use cases, and the advice about refactoring during a large migration

Last updated November 29, 2026.