Delivery guarantees
A broker's marketing page promises "exactly-once delivery". Your payments team is delighted. But over a network that can lose any message, including the reply that says "got it", no system can promise that a message arrives exactly once. Here's what they really mean, and what you have to build yourself.
In this lesson you'll learn to
- Define at-most-once, at-least-once and exactly-once delivery, and say what can be lost or repeated in each.
- Find where messages are lost or duplicated, between producer and broker and between broker and consumer, and how the order of "process" and "ack" decides it.
- Explain why exactly-once delivery isn't possible over an unreliable network, and how systems give exactly-once effects instead.
- Choose a guarantee for a given job, and build exactly-once effects with deduplication or transactions.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.