الأحداث على نطاق المؤسسة
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
explain what changes when events cross teams and organizations.
الموضوعات المخطط لها
- An event is a record of something that happened, named in the past tense: OrderPlaced.
- Inside one team you can change events freely; across teams every event becomes a public contract.
- At scale the questions are who owns it, where it is described, and how it may change.
- Events differ from commands: a command asks someone to act; an event only reports a fact.
تفاصيل المخطط المبدئي
عرض عملي
two lines: "ReserveStock" (command, one receiver) and "StockReserved" (event, any number of listeners), with Larkspur consumers of each.
اختبر فهمك
Why name an event in the past tense?
أظهر الإجابة
It reports a fact that already happened and cannot be refused by listeners.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.