CodeBaobab
COURSE 6 OF 13

Streaming Time and Recovery

Ordering and Multiple Delivery

Background reading
Free course preview

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

Continue with Pro

Get Pro on codebaobab.com.

See Pro plans
Complete course

What you will learn next

  1. 01Replay
  2. 02Error Handling and Dead-Letter Queues
  3. 03Micro-batch versus true streaming
  4. 04Fault Tolerance
  5. 05Separate failed events from healthy traffic
  6. 06Review
  7. 07References