Demo: one event, three consumers
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
see fan-out and independence. Prepares MID-026-LAB1.
Draft outline details
Step by step
- 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.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.