عرض عملي: أحداث الطلبات والمخزون في Larkspur، من الفهرس إلى المستهلكين
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
build the Larkspur event catalog and trace one event to its consumers; prepares ARC-026-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- List business facts: order placed, stock changed, shipment dispatched, return received.
- Assign one owner each and write the schema with examples.
- Planned mistake: a team proposes an event "OrdersTableRowUpdated" carrying every column. Fix: replace it with OrderPlaced and OrderCancelled, business facts independent of the table layout.
- Register consumers: fulfillment, finance, CRM sync, analytics; note each consumer's need.
- Introduce a change: add "giftMessage" as optional and show consumers unaffected; then show a breaking change handled with a v2 event and a dated retirement of v1.
- Decide, with the checklist, whether to adopt a backbone now and record the decision.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.