Surviving the Dual-Write Problem in Distributed Systems
summary
Covers concrete failure modes when writing to an app DB and an authorization graph like SpiceDB (6,500 stars), shows a Dropbox clone example with crash points and the exact inconsistent case that causes false positives, and compares practical fixes: transactional outbox with an append only outbox, CQRS + event sourcing, durable queues (Kafka NATS RabbitMQ SQS) and Temporal‑style durable runtimes. Lists costs, scale limits, and when cron/micro sync is acceptable.
AI-written summary · about
chapters (14)
- 0:00Welcome
- 0:23Dual Write Explained
- 1:21SpiceDB and Zanzibar
- 3:31Dropbox Example and Permissions
- 6:01Failure Points and Risks
- 8:05Why Simple Fixes Fail
- 10:06Option One Do Nothing
- 10:45Cron Checks and Microsync
- 12:33External Source of Truth
- 13:21CQRS and Event Sourcing
- 17:50Durable Execution Runtimes
- 19:53Transactional Outbox Pattern
- 21:39Choosing the Right Approach
- 23:15Resources and Closing
