انتقل إلى المحتوى
أمين أبوزيد
SRB-017

الترحيلات الكبيرة

  • 8 درس
  • 4.5 ساعة تدريب (تقدير)
في هذه الصفحة 9 موضوعات

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

نظرة عامة

الموضوعات

  • استراتيجية الطرح
  • أعلام الميزات (feature flags)
  • النشر التجريبي (canary deployment)
  • التعبئة الرجعية للبيانات (data backfills)

تعلّم أولًا

4.5 ساعة تدريب (تقدير)

مخرجات التعلم

  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.

الدروس

  1. 01تشريح ترحيل كبير
  2. 02استراتيجيات الطرح
  3. 03حركة الظل (Shadow traffic) والمقارنة
  4. 04أعلام الميزات على مستوى البرنامج
  5. 05التعبئة الرجعية (Backfills)
  6. 06إخراج الأنظمة من الخدمة (Decommissioning)
  7. 07عرض عملي: قراءة ظلّية لحالة الشحنة من النظامين
  8. 08عرض عملي: تعبئة رجعية يجب إيقافها واستئنافها

المختبر والتمارين

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.
أظهر الحلول
  • 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.

الاختبار

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

اختبار ذاتي لك: لا توجد درجات، ولا يُحفظ أو يُرسل أي شيء. اختر إجابة ثم تحقق منها، ويمكنك المحاولة مرة أخرى كما تشاء.

  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

الجزء العملي

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.

أخطاء شائعة

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

التقييم

Migration execution report.

دليل من بيئة العمل

A migration you executed through cut-over and decommissioning.

الصلة بالمسار الوظيفي

Migration strategy (ARC-037).

اكتب للبحث في المستويات والمراحل والوحدات والدروس.