A Search for Truth
summary
Explains concrete failure modes and fixes: cache key collisions, encode dependencies in cache keys, cache writes escaping DB transactions causing transactional cache pollution and cascading crashes (infinite retry loop example), and race-to-stale where cache is updated before commit. Recommends tools and patterns: Doctrine-backed caching, outbox pattern with Messenger plus idempotency keys, warns about changing isolation to read uncommitted and the operational pain of sharding at scale (mentions migrations across a billion shards). Practical, code-level guidance.
AI-written summary · about
chapters (13)
- 0:00Welcome and introduction
- 1:39Defining truth in software
- 3:27Failure in systems
- 6:23Caching pitfalls and bugs
- 10:33Databases and transactions
- 12:00Cache pollution types
- 14:03Solving cache inconsistencies
- 15:31External systems as truth
- 17:19Outbox pattern and Messenger
- 19:08Compensating actions
- 20:14Scaling to infinity
- 21:39Challenges of sharding
- 22:42Engineering truth in systems
