Q22: What do at-most-once, at-least-once, and exactly-once delivery mean?

Difficulty:AdvancedTopic:Messaging

At-most-once delivery avoids duplicates but can lose messages. At-least-once retries until acknowledged, so consumers must expect duplicates. Exactly-once processing means a defined effect is applied once within a specific boundary, often through transactions, deduplication, or idempotent state updates; it is not a universal guarantee across arbitrary external services. Design consumers for retries even when a broker offers strong delivery semantics.

Key Takeaways
  • At-least-once delivery requires duplicate-safe consumers.
  • Always state the boundary of any exactly-once guarantee.