COURSE 6 OF 13
Streaming Time and Recovery
Ordering and Multiple Delivery
Background reading
Free course previewComplete course
Ordering and Multiple Delivery
Distributed messaging can deliver events out of order or deliver the same event more than once.
A consumer can finish its work but fail before acknowledging receipt. The producer may then send the event again because it cannot know whether the first attempt succeeded.
Design the repeated operation so it does not apply the same effect twice. Ordering and deduplication address different problems; one does not automatically provide the other.
Make consumers tolerate the delivery guarantees the platform actually provides. Check ordering where it matters, and prevent a repeated event from applying the same effect twice.
Continue learning
See Pro plansContinue with Pro
Get Pro on codebaobab.com.
What you will learn next
- 01Replay
- 02Error Handling and Dead-Letter Queues
- 03Micro-batch versus true streaming
- 04Fault Tolerance
- 05Separate failed events from healthy traffic
- 06Review
- 07References