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

التكامل مع منصة البيانات

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

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

نظرة عامة

الموضوعات

  • CDC
  • Debezium
  • معالجة التدفقات (stream processing)
  • مسارات التحليلات

تعلّم أولًا

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

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

  1. Capture changes from a legacy database with CDC (Debezium) without changing its code.
  2. Distinguish CDC events from domain events and translate between them.
  3. Build stream processing for enrichment and aggregation (Kafka Streams or Flink concepts).
  4. Feed analytics pipelines while respecting data ownership and privacy.

الدروس

  1. 01التكامل مع أنظمة لا يمكنك تغييرها
  2. 02التقاط تغييرات البيانات (Change data capture) باستخدام Debezium
  3. 03من أحداث CDC إلى أحداث النطاق (Domain events)
  4. 04مفاهيم معالجة التدفقات
  5. 05مسارات التحليلات وملكية البيانات
  6. 06عرض عملي: بث جدول المخزون في FulfillCo دون المساس بشيفرته
  7. 07عرض عملي: تصفية البيانات الشخصية من تدفق CDC

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

Lab

SRB-007-LAB1 · Stock sync

Outcomes: 1, 2, 3, 4 · Time: ~4 h

  1. Set up Debezium on a copy of FulfillCo's database with a table include list.
  2. Translate change events into the StockLevelChanged domain event.
  3. Consume it in Shop's inventory and measure end-to-end delay.
  4. Exclude personal data and record replication slot monitoring.

Acceptance: Shop sees stock changes within seconds; FulfillCo code unchanged.

Exercises

IDOutcomeTask
SRB-007-EX011List three constraints in capturing from legacy and the CDC mitigation for each.
SRB-007-EX021Describe monitoring for a PostgreSQL replication slot.
SRB-007-EX032Translate this row change (qty 12 to 9) into a domain event and explain what is unknown.
SRB-007-EX042Review a design that exposes the raw stock_levels topic to all teams. Write the critique.
SRB-007-EX053Design an aggregation of stock per warehouse per minute and state the late-event policy.
SRB-007-EX064Plan pushing stock data to analytics with personal data removed and deletion handled.
أظهر الحلول
  • EX01 No code change: log-based; load: reads WAL; ordering: transaction log order and source positions.
  • EX02 Alert on retained WAL size and slot lag; plan for a stalled connector.
  • EX03 StockLevelChanged with available 9; the reason is unknown unless more context; do not guess.
  • EX04 Couples consumers to the schema, leaks columns, no owner; add a translation layer and a contract.
  • EX05 Tumbling 1-minute windows with a grace period, late events dropped or counted separately.
  • EX06 Source-side filter, data product contract, retention and deletion propagation, lineage.

Workplace evidence: a legacy integration you delivered with CDC or a similar technique.

الاختبار

Outcomes: O1 CDC · O2 CDC vs domain events · O3 stream processing · O4 analytics and ownership.

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

  1. 1Debezium on PostgreSQL reads:O1
  2. 2An unmonitored replication slot can:O1
  3. 3CDC avoids changing legacy code because it:O1
  4. 4A CDC event describes:O2
  5. 5Public contracts should be:O2
  6. 6Translation from CDC to domain events belongs in:O2
  7. 7Event time differs from processing time because:O3
  8. 8Stateful stream state is recovered from:O3
  9. 9Personal data should be filtered:O4
  10. 10Who owns data given to analytics?O4

الجزء العملي

Integration design review of the lab's stock sync, including privacy controls. Pass: 70% on the quiz and a design with a translation layer and filtered personal data.

أخطاء شائعة

Exposing raw table changes as a public contract; CDC on tables with personal data without filtering.

التقييم

Integration design review.

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

A legacy integration you delivered with CDC or a similar technique.

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

Integration patterns (ARC-024) and data architecture (ARC-023).

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