إعادة التشغيل والتعبئة الرجعية (Replay and backfill)
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
re-process events safely, including for consumers with side effects.
الموضوعات المخطط لها
- Replay is needed for new consumers, bug fixes, and recovery.
- Pure projections replay freely; side-effecting consumers (emails, payments) need protection.
- Techniques: idempotency keys, replay mode that disables side effects, deduplication tables.
- Throttle backfills so they do not starve live traffic.
تفاصيل المخطط المبدئي
عرض عملي
a consumer with a replay flag: in replay mode, update state but skip sending email; a dedupe table keyed by event id; backfill rate limit.
اختبر فهمك
How do you protect an email-sending consumer during replay?
أظهر الإجابة
Replay mode skipping sends plus event-id deduplication.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.