Demo: order events end to end
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
run the full flow. Prepares MID-028-LAB1.
Draft outline details
Step by step
- Start Kafka (KRaft) with Docker Compose; create
orderswith 3 partitions. orderspublishesOrderPlacedkeyed by order ID withacks=alland idempotence on.- Consume in groups
inventoryandpayments; show each gets every record. - Check ordering: send three events for one order and see the same partition and order.
- Planned mistake: publish with a null key and show events of one order in different partitions and out of order. Fix with the order ID key.
- Throw on a bad payload and show it arriving in
orders.DLT.
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.