The impossibility of delivering a message once, and only once
summary
Argues that exactly-once delivery is mathematically impossible and systems must pick between at-least-once or at-most-once. Demonstrates via carrier-pigeon and HTTP/WebSocket examples how retries cause duplicates or drops at scale, cites Kafka’s claim and YouTube-style rendering load. Recommends a practical fix: write events into the local database and run a relay that publishes them to the message broker — the transactional outbox pattern preserves DB atomicity while accepting duplicates or drops.
AI-written summary · about
chapters (11)
- 0:00Introduction with personal story
- 1:52Carrier pigeons analogy
- 5:26At most once vs at least once delivery
- 7:36Background processing with message brokers
- 10:06Server crashes and retries
- 11:10Handling background processing
- 12:36Choosing delivery guarantees
- 14:44Websockets and delivery guarantees
- 15:07Sending messages to brokers
- 17:35Transactional outbox pattern
- 18:57Key takeaways and Q&A
