Skip to content
Ameen Abozaid
SRB-017

Large migrations

  • 8 Lessons
  • 4.5 h practice (estimate)
On this page 9 topics

Overview

Topics

  • Rollout strategy
  • feature flags
  • canary deployment
  • data backfills

Learn first

4.5 h of practice (estimate)

Learning outcomes

  1. Sequence a migration into reversible phases with measurable checkpoints.
  2. Use feature flags, shadow traffic, and canaries to compare old and new paths in production.
  3. Run large data backfills safely (throttling, idempotency, verification).
  4. Decommission legacy paths and prove they are unused.

Lessons

  1. 01Anatomy of a large migration
  2. 02Rollout strategies
  3. 03Shadow traffic and comparison
  4. 04Feature flags at program scale
  5. 05Backfills
  6. 06Decommissioning
  7. 07Demo: shadow-reading shipment status from both systems
  8. 08Demo: a backfill that has to be stopped and resumed

Lab and exercises

Lab

SRB-017-LAB1 · Execute phase one

Outcomes: 1–4 · Time: ~4.5 h

  1. Take the first extraction phase planned in SRB-008 and write the phase plan with entry checks, exit measures, and rollback.
  2. Implement flags, shadow comparison, and a throttled idempotent backfill; produce a mismatch report.
  3. Rehearse rollback, then cut over once the mismatch rate is below the threshold; write the decommission checklist for the legacy path.

Acceptance: mismatch rate measured and below threshold before cut-over.

Exercises (assessment: migration execution report)

IDOutcomeTask
SRB-017-EX011Write a five-phase migration plan for moving returns data to a new service, with exit measures and rollback per phase.
SRB-017-EX021Case: the plan has a single cut-over weekend. Rewrite it as reversible phases.
SRB-017-EX032Define the shadow comparison for shipment status: fields, key, classification of mismatches, threshold.
SRB-017-EX042Choose a rollout strategy (canary, blue-green, cohort) for a write path and justify it.
SRB-017-EX053Design a backfill for 200 million rows with throttle, checkpoint, idempotency, and verification.
SRB-017-EX063Case: during a backfill, rows are updated in the source. Explain how to avoid stale copies.
SRB-017-EX074Write the decommission plan for the legacy status service, including proof of no use and the flag cleanup.
Show solutions
  • EX01 Example: prepare schema, dual-write behind a flag, backfill and verify, shift reads by cohort, retire old path; each with a measure (mismatch rate, lag) and rollback (flag off).
  • EX02 Split into shadow, partial serving, full serving, and cleanup; keep old path live until measures hold.
  • EX03 Key: shipment ID; fields: status, timestamp, carrier reference; classify timing (settle window), mapping bugs, missing records; threshold agreed in advance.
  • EX04 For writes, a canary by cohort with idempotency and reconciliation, since blue-green duplicates state; justify with reversibility and blast radius.
  • EX05 Batch by key range, rate limit adjustable, checkpoint table, upsert by stable key, verify counts and checksums per range, run off-peak.
  • EX06 Capture ongoing changes (dual-write or change stream) during and after the backfill, then reconcile; compare at the end.
  • EX07 Prove zero traffic over a full cycle; announce, block, scream-test where acceptable; archive; remove code, flags, alerts, access, and cost; confirm with finance.
  • Outcome 4 is also covered by the lab checklist and Q08-Q09.

Workplace evidence: a migration you executed through cut-over and decommissioning.

Quiz

Outcomes: O1 phased migration · O2 rollout and comparison · O3 backfills · O4 decommissioning.

A self-check for you: nothing is graded, saved or sent anywhere. Choose an answer, then check it. You can try again as often as you like.

  1. 1Every migration phase should have:O1
  2. 2Why prefer many small reversible steps?O1
  3. 3Shadow traffic means:O2
  4. 4A shadow path must NOT:O2
  5. 5Cut-over should wait until:O2
  6. 6A migration flag should have:O2
  7. 7An idempotent backfill means:O3
  8. 8The backfill is stopped at 60% and must resume. What lets it continue safely?O3
  9. 9Evidence that legacy is unused:O4
  10. 10Decommissioning is complete when:O4

Practical part

Submit the migration execution report (SRB-017 assessment) and complete SRB-017-LAB1. Pass: at least 8/10 on the quiz, a measured mismatch rate below threshold before cut-over, and rollback rehearsal evidence.

Common mistakes

Cut-over without comparison data; flags that outlive the migration by years; legacy never turned off.

Assessment

Migration execution report.

Workplace evidence

A migration you executed through cut-over and decommissioning.

Career relevance

Migration strategy (ARC-037).

Type to search levels, phases, modules and lessons.