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

معمارية الأحداث

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

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

نظرة عامة

الموضوعات

  • ملكية الأحداث
  • فهارس الأحداث
  • المخططات (Schemas)
  • التوافق

تعلّم أولًا

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

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

  1. Define event ownership across systems and organizations.
  2. Set up an event catalog with schemas, owners, and consumers.
  3. Define compatibility rules and an evolution process for event schemas.
  4. Decide when an event backbone (broker or streaming platform) is justified for an enterprise.

الدروس

  1. 01الأحداث على نطاق المؤسسة
  2. 02ملكية الأحداث
  3. 03فهارس الأحداث والمخططات
  4. 04التوافق والتطور
  5. 05متى يؤتي العمود الفقري للأحداث ثماره
  6. 06عرض عملي: أحداث الطلبات والمخزون في Larkspur، من الفهرس إلى المستهلكين

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

Lab

ARC-026-LAB1 · Event catalog

Outcomes: 1–4 · Time: ~3 h

  1. List Larkspur's business events: order placed, stock changed, shipment dispatched, return received, plus any others you find.
  2. Assign one owner per event with the reason.
  3. Write schemas, examples, and the consumer list for each event.
  4. Write compatibility rules and an evolution process with a retirement policy.
  5. Score the need for an event backbone and record the decision.
  6. Defend the catalog in a catalog review.

Acceptance: no event has two owners; evolution process documented.

Exercises (case-based; five exercises)

IDOutcomeTask
ARC-026-EX011Both the platform and the ERP publish "OrderConfirmed". Decide the owner and fix the situation.
ARC-026-EX022Write a catalog entry for ShipmentDispatched with schema, owner, consumers, and delivery guarantee.
ARC-026-EX033Classify seven schema changes as compatible or breaking and give the migration path for the breaking ones.
ARC-026-EX044A department with three systems and ten messages a day asks for a streaming platform. Write your recommendation.
ARC-026-EX051, 2Review an event "CustomerTableChanged" mirroring a CRM table; redesign it as business events.
أظهر الحلول
  • EX01 The system that decides the confirmation (platform) owns it; the ERP publishes its own fact such as OrderAccepted, or consumes the platform event.
  • EX02 Fields: shipmentId, orderId, carrier, trackingNumber, dispatchedAt, lines; owner fulfillment; consumers platform, CRM, customer notifications; at-least-once, so consumers deduplicate by shipmentId.
  • EX03 Compatible: add optional field, add enum value tolerated by readers, widen documentation. Breaking: remove, rename, retype, change meaning of a field, add required field. Use add-then-deprecate or a v2 event with overlap and retirement date.
  • EX04 Not justified: low volume and few consumers; use APIs or a managed queue; revisit when producers, consumers, or replay needs grow.
  • EX05 Table mirrors leak the CRM schema; publish CustomerRegistered, ConsentChanged, and AddressChanged with business fields.

Outcomes 3 and 4 are also covered by the quiz and the lab rules.

Workplace evidence: an event catalog or event standard you established.

الاختبار

Outcomes: O1 event ownership · O2 event catalog and schemas · O3 compatibility and evolution · O4 event backbone decision.

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

  1. 1Who should own an event?O1
  2. 2Two systems publishing the same event name leads to:O1
  3. 3An event catalog entry should include:O2
  4. 4Why avoid events that mirror database tables?O2
  5. 5Which change is usually backward compatible?O3
  6. 6A breaking change should be handled by:O3
  7. 7Where should compatibility checks run?O3
  8. 8Which situation most supports an event backbone?O4
  9. 9What is a cost of adopting a backbone?O4
  10. 10In a past-tense event name such as OrderPlaced, the event:O1

الجزء العملي

Catalog review of the Larkspur event catalog: the reviewer checks one owner per event and the documented evolution process. Pass: quiz at least 8/10, all five exercises correct, and a catalog with no shared ownership.

أخطاء شائعة

Events that mirror database tables; no owner for shared events.

التقييم

Catalog review.

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

An event catalog or event standard you established.

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

Event architecture decisions shape integration for years.

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