At-Least-Once Delivery
Pronunciationat-LEEST-WUNS dih-LIV-er-ee
Definition
At-least-once delivery guarantees a message is delivered one or more times: it is never lost, but it may be delivered again if an acknowledgement is missed, so consumers must cope with duplicates.
Where you hear it
In SQS, RabbitMQ and Kafka documentation, webhook delivery and retry designs.
Examples
SQS standard queues deliver at least once, so the handler must be idempotent.
The consumer crashed before acking, so the message came again.
The email worker can send the same receipt twice, so it checks a sent-log first.
Common mistake
Writing handlers that charge or email on every delivery. A repeat then charges or emails twice.
Don't confuse with
Exactly-once, which promises no duplicates but is hard to achieve in practice.
Say it at work
- In a meeting or chat
Assume at-least-once and dedupe.
- In an email or ticket
Store processed message ids.
Keep exploring
More in Architecture & Design