Migration patterns (the 7Rs)

Rehost/replatform/refactor/repurchase/relocate/retain/retire — portfolio assessment, wave planning, MGN for servers, DMS+SCT for databases.

About 33 min read3-question knowledge check

The mental model

Imagine a company relocating from an old rented warehouse to a new one across town. You do not treat every object the same way. The heavy machinery you unbolt and truck over exactly as it is — fast, no changes, you will optimise later. Some equipment you swap for a rented, serviced version at the new site instead of hauling your ancient one. A few bespoke rigs you actually rebuild to fit the new floor. Some software licences you cancel and replace with a subscription. Boxes of records nobody has opened in five years you shred. And a couple of things you simply leave behind for now because they are not ready to move.

That is the whole of cloud migration. Every application in a portfolio gets one of a small set of dispositions, and the entire discipline is choosing the right disposition per application, then moving in waves. AWS formalises the choices as the 7 Rs: Rehost, Replatform, Repurchase, Refactor, Relocate, Retain, Retire. AWS adapted Gartner's original 5 Rs into its own 6 Rs and later added Relocate as the seventh.

Why this exists: the two failure modes of migration are equal and opposite. "Lift and shift everything" gets you to the cloud fast but carries all your technical debt across and captures almost none of the cloud's benefits — you now pay cloud prices for VMs that behave exactly like your old ones. "Refactor everything to cloud-native" captures every benefit and never finishes, because you have turned a migration into a multi-year rewrite of your entire estate. The 7 Rs exist to make the disposition an explicit, defensible, per-application decision — so you rehost what should move fast, refactor only what earns it, and retire the 20% of your estate that nobody needed to move at all. In practice the single most valuable output of an assessment is the list of things you get to not migrate.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision