Learn Redis the hard way ... in production
summary
Trivago runs Redis for caching and ephemeral storage and hits real failures: a PHP C-extension causes widespread connection errors that surface as a 40% error rate for a period; debugging takes months and a watchdog enable triggers a segfault. Root causes: Redis is single‑threaded (BGSAVE forks and blocks — observed ~400ms), expensive commands (KEYS on a 50M key DB blocks ~5s every 5 minutes), and too many short-lived client connections. Fixes: close clients, A/B client libs, run multiple Redis instances per host, use twemproxy, block O(N) commands, use SCAN, tune persistence and eviction, shard with consistent hashing.
AI-written summary · about
chapters (12)
- 0:00Introduction and context
- 2:08Overview of Redis
- 3:52The road to production issues
- 7:15Debugging challenges
- 12:05Operational hazards
- 15:42Persistence and blocking
- 19:35Context and command handling
- 22:04Performance and Big O
- 25:22Scaling and proxy solutions
- 29:42Memory management
- 33:39Key takeaways and conclusion
- 35:51Q&A session








