Middle
What message delivery guarantees do you know in brokers?
sobes.tech AI
Answer from AI
Message brokers typically distinguish three main delivery guarantees:
-
At most once — the message may be delivered once or may be lost. No retries are performed, reducing duplication but risking data loss.
-
At least once — the message is guaranteed to be delivered, but may be delivered multiple times, requiring idempotent processing on the consumer side.
-
Exactly once — the message is delivered strictly once, with no duplicates or losses. This is the most complex guarantee, requiring sophisticated acknowledgment and transaction mechanisms.
Example: Kafka by default provides "at least once" delivery, but with additional configuration and the use of idempotent producers, it can approach "exactly once".