Map the dependencies before you move the workload
Plan a data or cloud migration with a dependency inventory, CDC tradeoffs, data reconciliation checks, and a cutover and rollback runbook.
Data & cloud migrations Practical guide
Published Updated 7 min read

A safe cloud migration plan starts with dependencies, a data-consistency strategy, tested cutover steps, and a recovery decision the business can make. Copying a workload successfully is one milestone. Completing the move means its critical transactions, data, and downstream outputs work in the destination.
Use this guide before committing to a migration date. It gives engineering and business owners a shared inventory, a method-selection matrix, and a cutover runbook they can adapt to the workload.
Build a dependency inventory before choosing the move
Map what the workload reads, writes, calls, and produces. Include identity, certificates, DNS, queues, scheduled jobs, file exports, analytics, and outside integrations. Confirm the map with runtime observations and the owners of dependent systems.
Use the following worksheet. The entries are a fictional order-processing example; record your actual assets in a restricted project inventory.
| Component or flow | Dependency and direction | Owner | Validation at destination |
|---|---|---|---|
| Order API | Reads and writes the order database | Application owner | Create and retrieve a test order using the intended identity. |
| Fulfilment worker | Consumes queue messages and updates order status | Operations owner | Process one message and verify retry behaviour without duplicate side effects. |
| Nightly finance export | Reads completed orders and writes a file | Finance data owner | Compare totals for the same period and confirm the recipient can read the export. |
| Identity integration | API validates tokens issued by the identity provider | Security owner | Test valid, expired, and insufficiently privileged identities. |
For every row, also record environment, data classification, network requirements, peak demand, and any timing constraint. A nightly job that is absent from daytime tests can still break financial reporting after cutover.
Microsoft’s migration planning guidance explains how dependency groups influence migration waves. Decide whether components move together or operate temporarily across environments, and test the latency and connectivity of that temporary arrangement.
Choose a migration method around business constraints
Separate the hosting decision from the data-transfer decision. Moving an application unchanged does not determine how its database catches up with ongoing writes.
| Approach | Suitable constraint | Main tradeoff | Evidence needed before cutover |
|---|---|---|---|
| Maintenance-window copy | The business permits a planned interruption | Simpler write coordination; interruption includes copy and validation | Rehearsed end-to-end duration fits the approved window. |
| Initial copy plus change data capture | Writes must continue during most of the transfer | Less interruption; replication, lag, and compatibility add operational work | Changes are captured and applied correctly; final catch-up is tested. |
| Phased application or traffic move | Workload boundaries can be separated | Smaller changes; temporary cross-environment dependencies remain | Routing, shared state, sessions, and backout behaviour are tested. |
Change data capture (CDC) transfers changes made after an initial copy. It does not eliminate the need to decide which system accepts writes during cutover. Check supported database versions, schema changes, keys, and source-log requirements against the selected tool’s documentation. AWS DMS CDC documentation describes these engine-specific requirements.
Replication lag is the delay between a source change and its application at the destination. A running replication task is not proof that the destination is current. Measure lag and backlog under representative load, then test final synchronization with writes paused where the plan requires it. AWS DMS latency guidance distinguishes source and target delays.
Validate data at a common point in time
Record a snapshot or reconciliation boundary so the comparison refers to the same data state. Comparing two live tables at different times can create apparent differences that are simply ongoing writes.
Use more than one check:
- Completeness: compare counts by table and meaningful partition, such as day or tenant. Matching totals alone cannot detect substituted or altered rows.
- Content: compare key-based records or normalized checksums, accounting for expected transformations, ordering, nulls, encodings, and time zones.
- Business invariants: check totals, status transitions, relationships, and required fields that must remain true.
- Application behaviour: verify representative reads and writes, permissions, exports, and downstream reports.
Tool validation is useful evidence, but review its coverage and exceptions. AWS DMS validation compares supported data and reports failures or suspended validation; it also adds load and time. Plan capacity for the checks and investigate every unresolved result before accepting affected data.
Write a cutover runbook with stop conditions
For each step, record the executor, expected duration, evidence, and decision owner. Rehearse the sequence in a representative environment and replace estimates with observed timings.
| Step | Action | Continue only when |
|---|---|---|
| 1. Confirm readiness | Check target access, capacity, monitoring, backup, and rehearsal results | Owners approve the acceptance gates and the recovery path. |
| 2. Control writes | Pause agreed producers and scheduled jobs; drain or account for in-flight work | The write boundary and remaining work are recorded. |
| 3. Finish synchronization | Apply pending changes and reconcile the agreed data boundary | Required data checks pass and unresolved differences are explained. |
| 4. Switch the application | Change the approved routes or configuration; run critical-flow tests | Application behaviour and user-facing signals meet agreed limits. |
| 5. Resume processing | Enable producers and scheduled work in the intended environment | New writes, retries, exports, and backlog processing behave correctly. |
| 6. Observe and accept | Review transactions, performance, data quality, and support signals | Business and operational owners accept the move. |
Define the time available to stop before the maintenance window expires. Include customer communication, dependent-team contacts, and the next update time in the runbook.
Rollback has a data boundary
Before the destination accepts writes, backout may mean returning the application to the source and resuming its producers. After destination writes begin, switching traffic back can lose or split transactions unless the plan reconciles those writes.
Document how destination changes would be replayed, synchronized back, or retained for a forward recovery. If that path is unavailable, state the point beyond which restoring the prior environment is no longer a safe rollback. The decision owner needs that fact before cutover, not after a failed health check.
Triggers should reflect business acceptance: failed critical transactions, unresolved data differences, sustained errors above the agreed limit, or insufficient time to finish within the window. A trigger starts a coordinated decision; it should not blindly automate an unsafe data reversal.
Worked example: counts pass, finance validation fails
In a fictional rehearsal, source and destination both contain 218,400 orders at the same reconciliation boundary. The total order count passes, but a daily revenue report differs because timestamps were interpreted in different time zones.
The migration stays at the validation gate. The team corrects the transformation, reruns partition-level checks and finance totals, and confirms an actual order flow. This is why a copy-complete message and a matching row count are insufficient acceptance criteria.
What to retain after the move
Keep the accepted data checks, performance observations, deployment versions, and business sign-off with the migration record. Agree an observation period and rollback-retention policy based on risk before decommissioning the source. Review spend after usage settles; provisioned capacity and the real workload may differ.
Wagner’s data and cloud migration services cover dependency mapping, transfer planning, and implementation. Explore the Barbra data and intelligence case study for a business-focused data use case. Use the cloud foundation checklist to assess the destination, and prepare the incident-response worksheet for the transition.
