Volume 5 · Chapter 10 — Advanced .NET Cloud Native Architecture
Enterprise Cloud Migration Strategies
10.1 Introduction
Most enterprises don’t build cloud-native from a blank slate - they migrate a large estate of existing applications. Doing this well is an exercise in judgment: not everything should move the same way, and “lift and shift everything then modernize later” and “rewrite everything as microservices” are both traps. This chapter covers the frameworks for deciding, sequencing, and de-risking a migration.
10.2 The 6 R’s
The standard decision framework classifies each application into one of the “6 R’s”:Rehost(lift and shift to VMs - fast, minimal change, minimal cloud benefit),Replatform(lift and reshape - e.g. move to App Service or containers, adopt managed databases - modest effort, real operational gains),Refactor/ Re-architect(redesign cloud-native - highest effort and value, reserved for strategic apps),Repurchase(replace with SaaS),Retire(decommission what’s no longer needed), andRetain(leave in place for now). The skill is applying the right R per application.
flowchart TD
A[Application in portfolio] --> B{Still needed?}
B -->|No| Retire[Retire]
B -->|Yes| C{SaaS replacement exists?}
C -->|Yes| Repurchase[Repurchase - SaaS]
C -->|No| D{Strategic / high change rate?}
D -->|Yes| Refactor[Refactor - cloud-native]
D -->|No| E{Cloud benefit from reshaping?}
E -->|Yes| Replatform[Replatform - App Service/containers + managed DB]
E -->|No| F{Ready to move now?}
F -->|Yes| Rehost[Rehost - lift & shift]
F -->|No| Retain[Retain - revisit later] 10.3 The Strangler Fig Pattern
For modernizing a monolith incrementally without a risky big-bang rewrite, the strangler fig pattern routes traffic through a facade and progressively replaces slices of the monolith with new cloud-native services, one capability at a time, until the old system is “strangled” and can be retired. Each increment delivers value and is independently reversible, so risk stays bounded throughout - the opposite of a multi-year rewrite that delivers nothing until the end.
// A routing facade sends already-migrated capabilities to the new service,
// everything else still to the legacy monolith - the strangler seam.
app.MapWhen(ctx => ctx.Request.Path.StartsWithSegments("/orders"), // migrated slice
b => b.UseMiddleware<ForwardToNewOrderServiceMiddleware>());
app.MapWhen(ctx => !ctx.Request.Path.StartsWithSegments("/orders"), // not yet migrated
b => b.UseMiddleware<ForwardToLegacyMonolithMiddleware>());
10.4 Sequencing, Data, and Risk
A sound migration sequences by value and risk: start with a lower-risk, learning-oriented workload to build capability and confidence, then tackle strategic apps. Data migration is usually the hardest part - moving large datasets with minimal downtime often needs replication and a cutover plan with rollback. Throughout, you run a business case (not everything is cheaper in the cloud), build a landing zone first, and keep each step reversible.
How do you decide how to migrate a large application portfolio to the cloud, and why not just lift-and-shift everything or rewrite everything?
I decide per application using the 6 R’s framework, matching each app’s migration approach to its business value, change rate, technical fit, and constraints - because a portfolio contains very different applications and applying one strategy to all of them is exactly the mistake. I assess each app and place it: retire the ones no longer needed (the cheapest win - stop paying for and securing what nobody uses); repurchase the ones a mature SaaS can replace (why run your own when a SaaS does it better); refactor/re-architect the strategic, high-change, differentiating apps into cloud-native designs where the investment pays off in agility and scale; replatform the apps that gain real operational benefit from reshaping - moving to App Service or containers and managed databases - for modest effort; rehost (lift and shift) the ones that need to move but don’t justify redesign yet, or must move fast; and retain the ones not ready or not worth moving, to revisit later. The point is that the right answer differs per app, and the judgment is in the classification. Now, why not just lift-and-shift everything? Because rehosting moves your applications but not your problems: you get little of the cloud’s value - you’re running the same architecture on someone else’s VMs, often at higher cost than on-prem because you didn’t adopt managed services, elasticity, or PaaS, and you’ve done nothing about the monolith’s agility and scaling limits. “Lift and shift now, modernize later” frequently becomes “lift and shift and never modernize” once the pressure’s off, leaving you paying cloud prices for on-prem architecture. It’s a reasonable choice for specific apps that must move quickly or aren’t worth investing in, but as a portfolio-wide strategy it captures almost none of the benefit that justified the migration. And why not rewrite everything as cloud-native microservices? Because refactoring is the most expensive, slowest, and riskiest option, and most applications don’t justify it - spending years and large budgets re-architecting a stable, low-change back-office app that a simple replatform would have handled is enormous waste, and a portfolio-wide rewrite is a multi-year, high-risk program that delivers value very late and often fails under its own weight. Refactoring should be reserved for the strategic apps where cloud-native agility and scale genuinely matter. So the senior answer is: assess the portfolio, apply the right R per app, sequence by value and risk - start with lower-risk workloads to build capability, then strategic apps - run a business case because not everything is cheaper in the cloud, and modernize incrementally (strangler fig) rather than big-bang. That deliberate, per-application, portfolio-level judgment - rather than a blanket lift-and-shift or a blanket rewrite - is what separates a successful enterprise migration from an expensive disappointment.
You must modernize a business-critical monolith with zero tolerance for a big-bang cutover. How do you approach it?
I’d use the strangler fig pattern to modernize incrementally behind a facade, replacing the monolith one capability at a time so value is delivered continuously and risk stays bounded at every step, never betting the business on a single cutover. First I put a routing facade (an API gateway or reverse proxy) in front of the monolith so all traffic flows through a seam I control; initially it routes everything to the legacy system, so nothing changes for users. Then I identify a good first slice - a capability that’s meaningfully valuable but relatively self-contained and lower-risk, ideally one with clear boundaries and manageable data coupling - and I build a new cloud-native service for just that capability. I route that slice’s traffic through the facade to the new service while everything else still goes to the monolith, so I’ve migrated one capability with the rest untouched. Crucially each increment is independently deployable and reversible: if the new service misbehaves I flip the route back to the monolith, so the blast radius of any step is one capability, not the whole system, and I can use canary/gradual rollout to shift a small percentage of traffic first and watch. I repeat capability by capability - each increment delivering value, building team capability, and shrinking the monolith - until enough is migrated that the remaining monolith can be retired. The hardest part is data, so I handle it deliberately: for each slice I decide how its data moves, often using replication or synchronization so the new service and the monolith stay consistent during transition, sometimes keeping the monolith’s database as the source of truth initially and migrating data ownership as a later step, always with a rollback plan. I sequence slices by value and risk - early slices chosen to learn and de-risk, harder/strategic slices later once the pattern and the team are proven - and I keep the facade, observability, and testing strong so I can detect problems immediately at each step. Compared with a big-bang rewrite, this delivers value throughout rather than at the end, keeps the system running the whole time, bounds risk to one reversible slice per step, lets the team learn cloud-native incrementally, and can be paused or re-prioritized as business needs change - which is exactly what “zero tolerance for a big-bang cutover” demands. So the approach is: facade in front, replace capability by capability into cloud-native services, route incrementally with the ability to roll back, handle each slice’s data with replication and a rollback plan, sequence by value and risk, and strangle the monolith gradually until it’s retired - continuous, reversible modernization instead of a single high-stakes cutover, which is the responsible way to modernize a business-critical system.
10.5 Insurance Enterprise Scenario
An insurer with hundreds of applications runs a portfolio assessment: dozens of redundant apps are retired, several commodity systems are repurchased as SaaS, most stable back-office apps are replatformed onto App Service with managed SQL, and only the strategic policy and claims platforms are refactored cloud-native. The claims monolith is modernized with a strangler fig - a gateway facade routes migrated capabilities to new AKS services while the rest stays on the monolith, data is synchronized during transition, and each slice is independently reversible - so the business runs uninterrupted throughout a multi-year migration built on a governed landing zone.
Chapter Revision Notes
- The 6 R’s - Rehost, Replatform, Refactor, Repurchase, Retire, Retain - are applied per application, not portfolio-wide.
- Lift-and-shift everything captures little cloud value; rewrite-everything is slow, costly, and risky - both are traps as blanket strategies.
- Strangler fig modernizes a monolith incrementally behind a facade, one reversible slice at a time.
- Data migration is usually the hardest part - use replication, cutover plans, and rollback.
- Sequence by value and risk, run a business case, build the landing zone first, keep each step reversible.