1 Overview
Cloud migration strategies are often grouped into categories that describe how much an application changes when it moves. The three most discussed are rehost, replatform, and refactor. Rehost, sometimes called lift and shift, moves an application to the cloud with minimal changes. Replatform makes targeted adjustments to take advantage of managed services without rewriting the core. Refactor rearchitects the application, often into smaller services or serverless components, to gain elasticity, resilience, and long-term efficiency. Each approach sits on a spectrum between speed and transformation.
The choice is not about which strategy is universally best. It is about which strategy fits a specific application, its business criticality, its dependencies, and the skills of the team that will operate it. A single migration program usually combines all three. Some workloads are rehosted quickly to exit a data center lease, others are replatformed to reduce operational burden, and a few are refactored because they are strategic differentiators. Treating the decision as a portfolio exercise, rather than a one-size-fits-all mandate, is what separates successful migrations from costly replatforming or refactoring efforts that stall.
This article explains how to evaluate rehost, replatform, and refactor across scoping, sequencing, cost, risk, rollback, and compliance. It offers planning guidance, not guarantees, and avoids vendor-specific recommendations so the principles apply regardless of the cloud environment you choose.
2 Scoping what actually moves
Scoping begins with a complete inventory of applications, their dependencies, and their data flows. You cannot choose a migration strategy without knowing what talks to what. A customer relationship management system may depend on a reporting database, an identity provider, and a message queue. If you rehost the application but leave the message queue on premises, you create a fragile hybrid that adds latency and operational complexity. Scoping should map every inbound and outbound connection, including batch jobs, scheduled tasks, and third-party integrations.
Next, classify each application by business value and technical fit. High-value, low-complexity applications are often good candidates for refactor because the investment pays back through agility. Low-value, high-complexity applications may be better rehosted to reduce risk and free up engineering time for more strategic work. Replatform sits in the middle, ideal for applications that would benefit from managed databases, caching, or container orchestration without a full rewrite. The goal is to assign a preliminary strategy to each application, then validate it with the teams that build and run the software.
Finally, document the constraints that influence strategy selection. These include regulatory requirements, data residency rules, latency tolerances, licensing agreements, and the availability of cloud-native skills. A constraint like a strict data residency law may rule out certain managed services or regions, pushing an application toward rehost. Conversely, a team with strong automation skills may find replatforming faster than expected. Scoping is not a one-time event; revisit it as discovery uncovers hidden dependencies or performance bottlenecks.
3 Sequencing the migration
Sequencing determines the order in which applications move and how strategies interleave. A common approach is to start with a small number of low-risk rehosts to build confidence and establish repeatable processes for networking, identity, and logging. These early moves are not glamorous, but they surface integration issues before they affect critical systems. Once the team has a working migration factory, it can tackle replatforming for applications that need managed services, and then refactoring for strategic workloads that justify deeper investment.
Dependencies should drive the sequence more than strategy labels. If application A depends on application B, moving B first may be necessary to avoid temporary cross-environment calls. However, some dependencies can be decoupled with an API gateway or a message broker, allowing parallel migration streams. The key is to avoid a big bang cutover. Instead, migrate in waves, with each wave containing a mix of strategies that balance risk, effort, and business value. A wave might include two rehosts, one replatform, and one refactor, so the team gains experience across approaches without betting everything on a single method.
Sequencing also affects cost and morale. Rehosting first can show quick wins and reduce data center costs, but it may defer the operational savings that come from managed services. Refactoring early can deliver long-term benefits but consumes senior engineering time that might be needed for urgent rehosts. A pragmatic sequence starts with rehost for speed, moves to replatform for efficiency, and reserves refactor for applications where the business case is strongest. Document the rationale for each wave so stakeholders understand why some applications move later than others.
4 Cost and risk at each phase
Cost and risk vary significantly across rehost, replatform, and refactor. Rehost is typically the least expensive and fastest to execute because it requires minimal code changes. The main costs are compute, storage, and network egress, plus the effort to replicate the existing environment. The risk is that you carry forward technical debt and may not achieve the elasticity or resilience the cloud offers. Rehosted applications can also be more expensive to run if they are not right-sized, because they may use over-provisioned instances or inefficient storage patterns.
Replatform introduces moderate cost and risk. You invest in modifying configuration, swapping components for managed services, and retesting. The payoff is lower operational overhead and better scalability. The risk is that partial changes create new failure modes or licensing complications. For example, moving a database to a managed service may require schema changes or connection pool adjustments. These are manageable but require careful testing. Replatform is often the best balance for applications that are stable but would benefit from cloud-native operations without a full rewrite.
Refactor is the most expensive and riskiest in the short term. It demands significant engineering time, architectural design, and thorough testing. The risk is that the rewrite takes longer than expected, introduces regressions, or fails to deliver the expected benefits. However, refactor can yield the greatest long-term savings through auto-scaling, pay-per-use pricing, and reduced maintenance. The decision should be based on a clear business case: will the application's lifecycle and strategic importance justify the investment? If not, rehost or replatform may be wiser. Always plan for cost buffers and avoid fixed-price guarantees, as migration costs are inherently uncertain.
5 Rollback and fallback planning
Rollback planning is essential for every migration strategy, but the fallback options differ. For rehost, rollback is relatively straightforward: keep the original environment running until the cloud version is validated, then cut over DNS or load balancer rules. If issues arise, revert the cutover and resume on-premises operations. Data synchronization is the tricky part; you need a strategy to reconcile changes made in the cloud with the original system. This may involve dual writes, change data capture, or a brief freeze window. The goal is to minimize data loss and downtime.
Replatform rollback is more complex because you have modified components. You may need to revert configuration changes, restore from backups, and re-point dependencies to the original services. If you replaced a self-managed database with a managed service, rolling back means migrating data back and reconfiguring the application. This is feasible but time-consuming. Document the exact steps and test them in a non-production environment. A common pattern is to run the old and new systems in parallel for a period, with the ability to switch traffic back if performance or stability degrades.
Refactor rollback is the hardest because the application architecture has changed. You cannot simply revert a code change; you may need to redeploy the previous version and restore data to its original schema. This is why refactor projects should be broken into small, reversible increments. Each increment should have a clear rollback plan, such as feature flags or blue-green deployments. If a refactored service fails, you can disable the new path and fall back to the legacy implementation. The key is to avoid a single, irreversible cutover. Plan for failure and make rollback a first-class part of your migration runbook.
6 Compliance along the way
Compliance requirements do not disappear when you move to the cloud; they often become more visible. Data residency, encryption, access controls, and audit logging must be addressed for each migration strategy. Rehost may seem simple because the application remains largely unchanged, but you still need to ensure that data is stored in compliant regions and that network traffic is encrypted. If the original environment had physical controls, you must translate those into cloud-native controls such as security groups, identity policies, and key management services. Compliance teams should be involved early to avoid late-stage surprises.
Replatform can introduce new compliance considerations. Managed services may store data in ways you did not control before, or they may offer encryption that you must explicitly enable. You need to verify that the service meets your regulatory obligations, such as industry-specific standards or internal policies. For example, a managed message queue might not support the same retention or isolation guarantees as a self-managed one. Document the shared responsibility model: the cloud provider secures the infrastructure, but you remain responsible for data classification, access management, and application-level controls.
Refactor demands the most rigorous compliance planning because you are changing how data flows and where it resides. Microservices may introduce new endpoints that need authentication and authorization. Serverless functions may have execution roles that must be tightly scoped. You should embed compliance checks into your CI/CD pipeline, such as automated policy scans and infrastructure-as-code validation. Regular audits and penetration testing help ensure that the refactored application meets the same or better security posture than the original. Compliance is not a one-time gate; it is an ongoing practice that evolves with your architecture.
7 Frequently asked questions
Which strategy is fastest? Rehost is generally the fastest because it requires the least change. However, speed depends on the application's complexity and the readiness of your migration factory. Replatform takes longer due to component swaps and testing, while refactor is the slowest because it involves redesign and reimplementation. If speed is the primary goal, start with rehost and revisit replatform or refactor later.
Can we mix strategies for a single application? Yes, and it is common. You might rehost the application tier but replatform the database, or refactor a specific module while leaving the rest unchanged. This hybrid approach can balance risk and benefit, but it requires careful dependency management. Document which parts are migrated with which strategy and ensure that interfaces remain compatible.
How do we decide between replatform and refactor? Consider the application's lifespan, business criticality, and the team's capacity for change. If the application is stable and will not change much, replatform is often sufficient. If it is a competitive differentiator that needs rapid feature delivery and elastic scaling, refactor may be justified. Always build a business case that weighs upfront investment against long-term operational savings and agility. Avoid refactoring for its own sake; tie it to measurable outcomes.
What about cost overruns? Migration costs are notoriously difficult to predict. Use planning guidance, not guarantees. Build contingency into your budget, track actual spend against estimates, and be prepared to adjust strategy if costs escalate. Regular reviews with finance and engineering can catch drift early. Remember that the cheapest migration is not always the best; consider total cost of ownership over the application's lifetime.