Exactly-once in a Microservices Environment
summary
How to achieve exactly-once semantics in a microservices environment using idempotent service design, illustrated by a high-load service case study. The talk explains patterns for ensuring logical/business transactions and single delivery of notifications or promo codes, and shows how Kafka and Redis were used to implement these guarantees.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 5:04Talk overview
- 9:26Business case
- 12:45Naive implementation issues
- 15:45Technology choices
- 17:10Idempotency explained
- 20:26Kafka message duplication
- 22:13Transaction outbox pattern
- 29:37Execution flow
- 31:46Error handling
- 36:02Branching scenarios
- 38:07Race condition prevention
- 41:18Scenario versioning
- 43:50Redis TTL optimization
- 47:07Service requirements
- 51:06Cost optimization
- 53:30Future architecture
- 54:13Idempotency limits
- 56:25Q&A
