Migration strategies · the 7 Rs

Seven ways to deal with one application: Retire, Retain, Relocate, Rehost, Replatform, Repurchase, Refactor. Read them as a ladder — the further right you go, the more you change, the more it costs and the more the cloud gives back. The decision is made per application, not per portfolio.

Bảy cách xử lý một ứng dụng: Retire, Retain, Relocate, Rehost, Replatform, Repurchase, Refactor. Hãy đọc như một nấc thang — càng đi sang phải thì càng sửa nhiều, càng tốn kém, và càng nhận lại nhiều lợi ích từ cloud. Quyết định này là cho từng ứng dụng, không phải cho cả danh mục.

Reach for it / not the right toolKhi nào dùng / khi nào không

The default answer in a data-centre exit is Rehost, because it's the fastest way to get out of the lease. Worth knowing exactly when that default is right — and when it quietly buys you a worse problem in the cloud. Câu trả lời mặc định khi rút khỏi data centre là Rehost, vì đó là cách nhanh nhất để thoát hợp đồng thuê. Cần biết chính xác khi nào mặc định đó đúng — và khi nào nó lặng lẽ mang lại một vấn đề tệ hơn trên cloud.

Reach for a straight lift and shiftChọn lift and shift thẳng

  • A hard deadline — lease expiry, data-centre closure, an acquisition to unwind. Speed beats elegance.Có hạn chót cứng — hết hạn thuê, đóng data centre, tách hệ thống sau thương vụ mua bán. Nhanh quan trọng hơn đẹp.
  • The app is vendor-supplied or unowned — no source, no team, no appetite to change a single binary.Ứng dụng do vendor cung cấp hoặc không ai sở hữu — không có source, không có team, không ai muốn đụng vào một binary nào.
  • You want one variable at a time: move first, prove it runs, then replatform or refactor from a cloud baseline.Bạn muốn đổi từng biến một: chuyển trước, chứng minh nó chạy, rồi replatform hoặc refactor từ nền cloud.
  • Hundreds of similar servers — MGN replicates them in waves and the cutover is repeatable; see Migration tools.Hàng trăm server giống nhau — MGN nhân bản theo từng đợt và bước cutover lặp lại được; xem Migration tools.

Not the right moveKhông phải nước đi đúng

  • The driver is features, scale or agility, not the lease — rehosting a monolith changes none of them. That's a Refactor.Động lực là tính năng, quy mô hay tốc độ thay đổi, không phải hợp đồng thuê — bê nguyên monolith lên chẳng đổi được thứ nào. Đó là Refactor.
  • The workload is 80% database and undifferentiated ops — lifting a self-managed engine onto EC2 keeps the patching. Replatform to RDS instead.Workload chủ yếu là database và việc vận hành không tạo khác biệt — bê engine tự quản lên EC2 thì vẫn phải tự vá. Hãy Replatform sang RDS.
  • There's a mature SaaS for exactly this (CRM, HR, ticketing). Migrating your own copy is paying to keep a commodity. Repurchase.Đã có SaaS chín muồi đúng cho việc này (CRM, HR, ticketing). Chuyển bản tự nuôi lên là trả tiền để giữ một thứ hàng chợ. Repurchase.
  • Nobody has logged in for a year, or the platform is mainframe / non-x86 Unix. Those are Retire and Retain — and both are real answers.Cả năm không ai đăng nhập, hoặc nền tảng là mainframe / Unix không phải x86. Đó là Retire và Retain — và cả hai đều là câu trả lời hợp lệ.

The ladder: effort and payoff rise togetherNấc thang: công sức và lợi ích cùng tăng

There is no "best" R. Each rung buys more cloud benefit with more work, so the only real question is how much change this application deserves. Left of the ladder is cheap and fast and leaves the app exactly as broken as it was; right of it is expensive and slow and finally makes the cloud worth paying for. Không có R nào "tốt nhất". Mỗi nấc đổi thêm công sức lấy thêm lợi ích cloud, nên câu hỏi thật sự chỉ là ứng dụng này xứng đáng được thay đổi tới mức nào. Phía trái thang thì rẻ và nhanh nhưng ứng dụng vẫn dở y như cũ; phía phải thì đắt và chậm nhưng mới khiến tiền bỏ ra cho cloud đáng giá.

A staircase of the seven migration strategies, rising from left to right as effort and cloud benefit increase together. The first step holds Retire, meaning turn it off for a ten to twenty percent saving, and Retain, meaning leave it in place for compliance or unresolved dependencies; together they are labelled do not move. The second step holds Relocate, the same platform moved to its cloud edition such as VMware to VMware Cloud on AWS, and Rehost, lift and shift with the Application Migration Service for roughly thirty percent saving; together they are labelled move but do not change. The third step is Replatform, lift and reshape towards RDS or Elastic Beanstalk, labelled small change. The fourth step is Repurchase, drop and shop onto a SaaS product such as Salesforce, labelled replace it. The highest step is Refactor, rebuilding cloud native from monolith to microservices, labelled rebuild it. An arrow beneath runs from less effort and less cloud benefit on the left to more effort and more cloud benefit on the right. effort and cloud benefit rise together don't move move · don't change small change replace it rebuild it RETIRE RETAIN RELOCATE REHOST REPLATFORM REPURCHASE REFACTOR turn it off 10–20% saved leave it in place compliance, deps same platform VMware → VMC lift and shift MGN · ~30% off lift and reshape → RDS, Beanstalk drop and shop → Salesforce rebuild native mono → micro less effort · less cloud benefit more effort · more cloud benefit further right = more rewriting, and more of what the cloud gives back

Read a question by finding which rung its wording sits on. "As-is, fastest" is the second rung. "Managed database, minimal change" is the third. "Monolith to microservices" is the top one — and it never wins on speed.

Đọc đề bằng cách tìm xem câu chữ của nó rơi vào nấc nào. "Giữ nguyên, nhanh nhất" là nấc thứ hai. "Managed database, ít thay đổi" là nấc thứ ba. "Monolith sang microservices" là nấc trên cùng — và nó không bao giờ thắng về tốc độ.

The seven, one at a timeBảy chữ R, từng cái một

Retire · turn it offRetire · tắt hẳn what nobody uses, often found while re-architecting · ~10–20% cost gone, smaller attack surface, less to maintain · e.g. the reporting server replaced by a dashboard three years agothứ không ai dùng, thường lộ ra khi đang re-architect · giảm ~10–20% chi phí, thu nhỏ bề mặt tấn công, bớt việc bảo trì · vd server báo cáo đã bị dashboard thay thế ba năm trước
Retain · do nothing, deliberatelyRetain · cố ý không làm gì security or data-residency rules, latency to an on-prem dependency, a dependency you haven't untangled, no business value in moving, mainframe / mid-range / non-x86 Unix · e.g. the AS/400 that runs payrollquy định bảo mật hay nơi lưu dữ liệu, độ trễ tới một phụ thuộc on-prem, phụ thuộc chưa gỡ được, chuyển đi không mang lại giá trị kinh doanh, mainframe / mid-range / Unix không phải x86 · vd cái AS/400 đang chạy bảng lương
Relocate · same platform, cloud editionRelocate · cùng nền tảng, bản cloud move the hypervisor layer, change nothing above it — no conversion, no agent, same tooling and skills · VMware SDDC → VMware on AWS · also covers EC2 moved to another VPC, account or Regionchuyển lớp hypervisor, phía trên giữ nguyên — không convert, không cài agent, cùng công cụ và kỹ năng · VMware SDDC → VMware trên AWS · cũng gồm chuyển EC2 sang VPC, account hay Region khác
Rehost · "lift and shift"Rehost · "lift and shift" re-host physical, virtual or other-cloud machines as EC2, as-is, with no cloud optimisation · ~30% cost saving · AWS Application Migration Service (MGN) replicates continuously, then cuts overbê máy vật lý, máy ảo hay máy ở cloud khác lên thành EC2, nguyên trạng, không tối ưu gì cho cloud · tiết kiệm ~30% chi phí · AWS Application Migration Service (MGN) sao chép liên tục rồi cutover
Replatform · "lift and reshape"Replatform · "lift and reshape" core architecture untouched, but hand the undifferentiated parts to a managed service · database → RDS · application → Elastic Beanstalk · self-run cache or broker → ElastiCache, Amazon MQkiến trúc lõi không đổi, nhưng giao phần không tạo khác biệt cho managed service · database → RDS · ứng dụng → Elastic Beanstalk · cache hay broker tự nuôi → ElastiCache, Amazon MQ
Repurchase · "drop and shop"Repurchase · "drop and shop" stop running it, buy a different product — usually SaaS · expensive in the short term, quick to deploy · CRM → Salesforce · HR → Workday · CMS → Drupal · the migration becomes a data and process exercise, not an infrastructure onethôi tự chạy, mua sản phẩm khác — thường là SaaS · đắt trong ngắn hạn, triển khai nhanh · CRM → Salesforce · HR → Workday · CMS → Drupal · việc chuyển đổi thành bài toán dữ liệu và quy trình, không phải hạ tầng
Refactor / re-architect · rebuildRefactor / re-architect · xây lại reimagine the app with cloud-native features, driven by a business need for features, scalability, performance, security or agility · monolith → microservices · servers → Lambda, managed queues, object storagehình dung lại ứng dụng bằng các tính năng cloud-native, xuất phát từ nhu cầu kinh doanh về tính năng, mở rộng, hiệu năng, bảo mật hay tốc độ thay đổi · monolith → microservices · server → Lambda, queue managed, object storage

What each rung actually buysMỗi nấc thật ra đổi được gì

The trade is always the same shape: time and risk now against operating cost and agility later. Sort the portfolio by that, not by which R sounds most modern. Sự đánh đổi luôn cùng một dạng: thời gian và rủi ro bây giờ đổi lấy chi phí vận hành và độ linh hoạt về sau. Hãy sắp xếp danh mục theo tiêu chí đó, không phải theo chữ R nào nghe hiện đại nhất.

RungNấc Effort · riskCông sức · rủi ro What you get backNhận lại được gì
Retire near zero — the work is proving nothing depends on itgần như không — việc khó là chứng minh không có gì phụ thuộc vào nó ~10–20% off the bill, less attack surface, fewer things to migrate at allgiảm ~10–20% hoá đơn, ít bề mặt tấn công, và bớt hẳn số thứ phải di chuyển
Retain none now — but you keep paying for two operating modelsbây giờ thì không — nhưng vẫn phải nuôi hai mô hình vận hành nothing, on purpose: risk avoided until the blocker is gonekhông gì cả, và đó là chủ ý: tránh rủi ro cho tới khi gỡ được rào cản
Relocate low — no conversion, no re-testing of the guest OSthấp — không convert, không phải test lại guest OS out of the data centre in weeks, same tools and skills, AWS services reachable next doorrời data centre trong vài tuần, giữ nguyên công cụ và kỹ năng, dịch vụ AWS nằm ngay bên cạnh
Rehost low–medium — replicate, test, cut over; the app itself is untouchedthấp–vừa — nhân bản, kiểm thử, cutover; bản thân ứng dụng không đụng tới ~30% saving, elastic capacity, and a cloud baseline to improve from latertiết kiệm ~30%, năng lực co giãn, và một nền cloud để cải thiện tiếp về sau
Replatform medium — config, connection strings, some testing; architecture staysvừa — sửa cấu hình, chuỗi kết nối, kiểm thử một ít; kiến trúc giữ nguyên patching, backups, HA and scaling become someone else's jobvá lỗi, sao lưu, HA và mở rộng trở thành việc của người khác
Repurchase medium — no code, but data mapping, process change and retrainingvừa — không phải viết code, nhưng phải ánh xạ dữ liệu, đổi quy trình và đào tạo lại live fast, zero infrastructure — at a subscription that never ends and customisation you loselên nhanh, không còn hạ tầng — đổi lại là khoản thuê bao không bao giờ dứt và phần tuỳ biến bị mất
Refactor highest — new code, new skills, the longest schedule and the most ways to failcao nhất — code mới, kỹ năng mới, lịch dài nhất và nhiều đường hỏng nhất the actual cloud upside: independent deploys, scale-to-zero cost, feature velocitylợi ích cloud thật sự: deploy độc lập, chi phí co về 0 khi rảnh, tốc độ ra tính năng
Pick per application, in a waveChọn theo từng ứng dụng, theo từng đợt The R is assigned during portfolio assessment, one application at a time, and a single migration wave normally contains four or five different Rs. A plan that answers "we are rehosting" for a whole estate is a plan that hasn't done discovery yet — the inventory and dependency mapping comes first; see Migration tools. Chữ R được gán trong lúc đánh giá danh mục, mỗi lần một ứng dụng, và một đợt migration thường chứa bốn năm chữ R khác nhau. Kế hoạch mà trả lời "chúng ta sẽ rehost" cho toàn bộ hệ thống là kế hoạch chưa làm discovery — kiểm kê và vẽ bản đồ phụ thuộc phải làm trước; xem Migration tools.

Things that catch you outNhững chỗ dễ vấp

  • Relocate is not Rehost. Relocate keeps the platform layer identical — the VM is never converted and no agent is installed. Rehost converts the machine into an EC2 instance. If the question stresses "same hypervisor, same tooling, no re-testing", it wants Relocate; if it stresses "as EC2, as-is", it wants Rehost. Relocate không phải Rehost. Relocate giữ nguyên lớp nền tảng — VM không hề bị convert và không cài agent nào. Rehost biến cái máy đó thành một EC2 instance. Nếu đề nhấn "cùng hypervisor, cùng công cụ, không phải test lại" thì là Relocate; nếu nhấn "thành EC2, giữ nguyên" thì là Rehost.
  • "Rehost now, refactor later" only works if someone books the later. A lift and shift that is never revisited carries every on-prem sin into the cloud — over-provisioned instances, snowflake config, no autoscaling. The ~30% is a ceiling on that path, not a floor. "Rehost trước, refactor sau" chỉ đúng nếu có người thật sự đặt lịch cho cái sau. Một lần lift and shift không bao giờ được xem lại sẽ mang mọi thói xấu on-prem lên cloud — instance cấp thừa, cấu hình mỗi máy một kiểu, không autoscaling. Con số ~30% là trần của con đường đó, không phải sàn.
  • Refactor is a business case, not an engineering preference. It costs the most and takes the longest, so it needs a driver the business recognises — features, scale, performance, security, agility. "It would be cleaner" is not one, and on cost alone it usually loses to Replatform. Refactor là bài toán kinh doanh, không phải sở thích kỹ thuật. Nó tốn nhất và lâu nhất, nên cần một động lực mà phía kinh doanh công nhận — tính năng, mở rộng, hiệu năng, bảo mật, tốc độ thay đổi. "Làm vậy sạch hơn" không phải động lực, và nếu chỉ xét chi phí thì nó thường thua Replatform.
  • Repurchase looks cheap on the migration plan and expensive on the P&L. No servers to move, but a subscription forever, your data reshaped into someone else's schema, customisation lost, and the data now living with a third party — which is a compliance question, not an IT one. Repurchase nhìn thì rẻ trên kế hoạch migration nhưng đắt trên báo cáo tài chính. Không phải chuyển server nào, nhưng phải trả thuê bao mãi mãi, dữ liệu bị nắn theo schema của người khác, mất phần tuỳ biến, và dữ liệu giờ nằm ở bên thứ ba — đó là câu chuyện tuân thủ, không phải chuyện IT.
  • Retain without a review date becomes an accidental permanent hybrid. Record why it's retained and what would change the answer — a licence renewal, a vendor release, a compliance ruling. Otherwise you fund two of everything: connectivity, identity, monitoring, on-call. Retain mà không có ngày rà soát lại sẽ thành hybrid vĩnh viễn ngoài ý muốn. Hãy ghi rõ vì sao giữ lại và điều gì sẽ làm đổi câu trả lời — một lần gia hạn licence, một bản phát hành của vendor, một phán quyết về tuân thủ. Nếu không, bạn nuôi hai bản của mọi thứ: kết nối, identity, giám sát, trực sự cố.

Exam reflexesPhản xạ khi thi

The wording maps to exactly one R. Find the phrase about how much may change, and the answer is fixed before you read the options. Câu chữ trong đề ứng đúng một chữ R. Tìm cụm nói về được phép thay đổi tới đâu, và đáp án đã cố định trước cả khi bạn đọc các lựa chọn.

The question says…Đề nói… AnswerTrả lời
"No code changes, fastest way off the data centre, minimal downtime""Không sửa code, cách nhanh nhất rời data centre, downtime tối thiểu" Rehost — lift and shift with MGNRehost — lift and shift bằng MGN
"Move to a managed database / stop patching, with minimal change to the application""Chuyển sang managed database / thôi tự vá, ít thay đổi ứng dụng nhất" Replatform — RDS, Elastic BeanstalkReplatform — RDS, Elastic Beanstalk
"Break the monolith into microservices", "go event-driven / serverless", "scale each component independently""Tách monolith thành microservices", "chuyển sang event-driven / serverless", "mở rộng từng thành phần độc lập" Refactor — Lambda, containers, managed queues. Never the fastest optionRefactor — Lambda, container, queue managed. Không bao giờ là lựa chọn nhanh nhất
"Replace the in-house CRM / HR system with a SaaS product""Thay hệ thống CRM / HR tự viết bằng sản phẩm SaaS" Repurchase — drop and shopRepurchase — drop and shop
"VMware estate, keep the same hypervisor, tooling and skills""Hệ thống VMware, giữ nguyên hypervisor, công cụ và kỹ năng" Relocate — VMware on AWS; no conversion, no agentRelocate — VMware trên AWS; không convert, không agent
"Mainframe / non-x86 Unix", or a compliance or latency blocker with no fix yet"Mainframe / Unix không phải x86", hoặc rào cản tuân thủ hay độ trễ chưa có cách gỡ" Retain — a valid answer; record the review triggerRetain — vẫn là đáp án hợp lệ; ghi lại điều kiện để rà soát lại
"Discovery found servers nobody uses" / "reduce the estate before migrating""Discovery tìm ra các server không ai dùng" / "thu gọn hệ thống trước khi chuyển" Retire — cheapest 10–20% you will ever saveRetire — 10–20% rẻ nhất mà bạn từng tiết kiệm được