16.1 · The modernisation decision matrix
Before choosing a migration verb, score the application. Gartner's TIME model (Tolerate, Invest, Migrate, Eliminate) plots each app on Business Value × Technical Fit and assigns one of four dispositions; it has been the dominant Application Portfolio Management (APM) framing since 2010. Variants: Gartner PACE Layered (Systems of Record / Differentiation / Innovation) and the McKinsey/Forrester rationalisation grids.
| Quadrant | Business value | Technical fit | Action |
|---|---|---|---|
| Tolerate | Low | High | Keep as-is; minimal investment |
| Invest | High | High | Strategic — modernise, extend |
| Migrate | High | Low | Re-platform, refactor, or replace |
| Eliminate | Low | Low | Retire — confirm no live consumers |
16.2 · Gartner's 7 Rs of cloud migration
Originally Gartner's 5 Rs (2010), expanded by AWS to 6 (2016), then to 7 (2021). Each application picks one disposition; large estates split across all seven.
| R | Meaning | Example |
|---|---|---|
| Retire | Switch off — no replacement | Reporting tool nobody uses |
| Retain (revisit later) | Stay on-prem for now (compliance, dependency) | Air-gapped HSM appliance |
| Rehost (lift-and-shift) | Move VMs unchanged to IaaS | VMware VM → AWS EC2 via MGN |
| Relocate | Move at hypervisor level (no OS change) | VMware Cloud on AWS / Azure VMware Solution |
| Replatform (lift-and-reshape) | Small changes to use managed services | Self-managed Postgres → RDS / Cloud SQL |
| Repurchase | Replace with SaaS | On-prem CRM → Salesforce / Dynamics 365 |
| Refactor / Re-architect | Rewrite to cloud-native | Monolith → microservices on EKS + DynamoDB |
Cost and risk increase left-to-right; long-term TCO and agility improve in the same direction. Most estates land 40 % Rehost, 25 % Replatform, 15 % Repurchase, 10 % Refactor, 10 % Retire/Retain — though numbers swing wildly with industry and regulation.
16.3 · The strangler fig pattern
Coined by Martin Fowler in 2004, named after the strangler fig vine that wraps a host tree and replaces it. The new system grows around the legacy, intercepting more of its surface area each release, until the legacy can be removed. The pattern requires a facade (proxy, gateway, or library shim) routing each request to either old or new.
Strangler fig steps
- Insert a facade in front of the legacy with no behaviour change.
- Identify a seam (a bounded slice — see Ch 07 DDD).
- Build the new implementation behind the facade.
- Route a small % of traffic; verify parity.
- Increase percentage; keep legacy warm for rollback.
- Decommission the legacy slice when traffic is zero for an agreed cool-off.
16.4 · Branch by Abstraction
Coined by Paul Hammant (2007), popularised by Jez Humble. Used inside a codebase rather than between deployables. Introduce an abstraction over the part you want to change; route all callers through it; build the new implementation behind the abstraction; flip the flag; remove the old. Trunk-based development friendly, no long-lived feature branch.
16.5 · Parallel run / shadow run
Both old and new process the same input; results are compared but only one set is authoritative. Variants: shadow (new sees real traffic but never replies — Twitter's Diffy, GitHub's Scientist library, 2016) and dual-write parallel (both write; reconcile). Use to gain statistical confidence before cut-over.
| Variant | Authoritative | Risk profile |
|---|---|---|
| Shadow (read-only) | Old | Lowest — new can be wrong silently |
| Parallel compute / compare | Old | Operational — must run both at scale |
| Dual-write (canary) | Switching | Hard — two writers, reconciliation |
| Traffic-mirror cut-over | New (with rollback) | Highest confidence, biggest investment |
16.6 · Blue-green for data — large migrations
Stateful migrations need a recipe that keeps the writeable set consistent through cut-over:
bulk copy historical
change-data-capture stream
app writes both
row counts, checksums
flip reads then writes
Tools commonly used: AWS DMS Debezium Striim GoldenGate Qlik Replicate (Attunity) Azure Data Migration Service GCP Database Migration Service.
16.7 · Mainframe modernisation
Z/OS and AS/400 estates still run the world's payments, insurance, and reservations. Four broad paths:
| Path | Description | Vendors / services |
|---|---|---|
| Re-host / emulate | Recompile COBOL/CICS to run on x86 with emulation | Micro Focus Enterprise Server, Heirloom Computing, LzLabs Software Defined Mainframe |
| Re-platform (managed) | Cloud-managed runtime + tooling | AWS Mainframe Modernization (2021), Azure Mainframe Migration / Astadia, Google Dual Run + G4 Cornerstone |
| Re-engineer / language migration | Convert COBOL → Java / C#; rewrite JCL → Airflow | AWS Blu Age, TmaxSoft OpenFrame, Modern Systems, Asysco AMT |
| Replace with SaaS / package | Buy a vertical-industry platform | Guidewire (insurance), Temenos / Mambu (banking), Sabre / Amadeus (travel) |
16.8 · SaaS migration patterns
- Multi-tenant onboarding — silo (one stack per tenant), pool (shared, partition-keyed), bridge (shared compute + dedicated DB). Pick per tenant tier (cross-reference Ch 09).
- Data isolation — schema-per-tenant vs row-level security; encryption-key-per-tenant for regulated tiers.
- Customisation — configuration over code; tenant feature flags; extension points (webhooks, scripting sandboxes).
- Region migration — replicate to target region, dual-read, cut-over writes during low-traffic window, decommission source. Honour residency contracts and consent records throughout.
- Plan migration — upgrades, downgrades, free→paid; preserve data, revoke entitlements atomically.
16.9 · Migration wave planning
- Discovery — agentless + agent-based inventory (servers, services, dependencies, traffic flows).
- Assessment — score each app (TIME quadrant + 7R disposition + business criticality + complexity).
- Wave grouping — group by dependency closure (move together what calls together), with business-priority weighting. A wave should be independent of later waves.
- Pilot wave — 1–3 non-critical apps to prove tooling, training, and run-book.
- Ramp — 3–6 apps per wave, fortnightly cadence; retrospective after each.
- Cut-over & hyper-care — defined window, dry-run, rollback rehearsal, 14-day elevated support.
16.10 · Tooling landscape
| Category | Tools |
|---|---|
| Discovery & dependency mapping | AWS Application Discovery Service, Azure Migrate Discovery, GCP StratoZone (acq. 2020), Device42, RISC Networks (Flexera), Cloudamize, vRealize / Aria |
| Block-level replication (rehost) | AWS MGN (CloudEndure successor), Azure Migrate: Server Migration, GCP Migrate to Virtual Machines (Velostrata), Carbonite Migrate, Zerto |
| Container modernisation | AWS App2Container, Azure Migrate App Containerization, kompose, Buildpacks (CNB) |
| Database migration | AWS DMS + Schema Conversion Tool, Azure DMS, GCP DMS, Striim, Qlik Replicate, Debezium, Ispirer |
| Mainframe | AWS Mainframe Modernization, Micro Focus, Heirloom, LzLabs, Astadia, TmaxSoft |
| FinOps / TCO during migration | CloudHealth (VMware), Flexera One, Apptio Cloudability, Vantage |
| Programme management | AWS Migration Hub, Azure Migrate hub, Cloamp, ServiceNow APM |
16.11 · Data migration patterns
| Pattern | When to use | Trade-offs |
|---|---|---|
| ETL one-shot | Small dataset, planned downtime acceptable | Simple; requires an outage window |
| Dual-write + backfill | App-controlled writes; small history | Application change; reconciliation harness |
| CDC + cut-over | Large dataset, near-zero downtime | Most popular; complex tooling (DMS, Debezium) |
| Trickle migration | Per-tenant or per-region rollout | Long co-existence; double cost during transition |
| Offline appliance (Snowball / Data Box / Transfer Appliance) | Petabyte-scale, limited bandwidth | Days–weeks transit; encryption in-transit and at-rest |
16.12 · Risk register for a migration
| # | Risk | Mitigation |
|---|---|---|
| 1 | Undiscovered dependency (hidden batch, scheduled task) | Network flow logs + agent-based discovery; 2-week observation window |
| 2 | Performance regression after move | Baseline pre-migration; load test in target; latency budget (Ch 14) |
| 3 | Data loss during cut-over | CDC + dual-write + checksum validation; rehearsed rollback |
| 4 | Licence non-portability (Oracle, SQL Server BYOL) | Licence audit early; vendor sign-off for cloud use |
| 5 | Compliance / data residency violation | Region/zone constraints in IaC; data classification mapped to allowed regions |
| 6 | Skills gap on target platform | Pilot wave doubles as training; pair with vendor PS |
| 7 | Cost blow-out (oversized instances, egress) | Right-size at cut-over; FinOps gate (Ch 15); reserved/savings plans 60 days post-stable |
| 8 | Vendor lock-in deepens during refactor | Hexagonal architecture (Ch 06); cloud-agnostic at interface |
| 9 | Cut-over window overruns | Dry runs; per-step time budget; automated rollback trigger |
| 10 | Business stakeholder fatigue | Wave cadence with visible wins; comms plan; hyper-care SLAs |