عرض عملي: حدث واحد وثلاثة مستهلكين
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
see fan-out and independence. Prepares MID-026-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Define the
OrderPlacedJSON schema with the fields from L05. - Publish it once to a topic (use any broker available in the lab setup).
- Start three consumers: inventory, payments, notifications, each with its own subscription.
- Stop one consumer, keep publishing, restart it, and show it catches up while the others were unaffected.
- Planned mistake: publish
ReserveStockAndChargeCardas an "event". Explain why it is a command in disguise and rename itOrderPlaced. - Add the event to the catalog with an owner.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.