The Desi Architect
Notes / Building Blocks / Redis Field Guide
Track 2 · Building Blocks

Redis Field Guide

One thread, one RAM, a dozen data structures. Redis is fast because it does very little per command, and it is dangerous for the same reason. This page covers what each structure is for, what is atomic and what is not, how it survives a restart, and how to scale it without losing your data quietly.

Guide24 min read
On this page
  1. The KEYS command that froze the toss
  2. The simple version
  3. Why it is fast, and what that costs
  4. The data structures in one glance
  5. Going deeper, structure by structure
  6. What is atomic, and what is not
  7. Recipes with the traps removed
  8. Keys, namespaces and the commands to avoid
  9. Eviction and the maxmemory trap
  10. Pub/Sub or Streams?
  11. Persistence: what survives a restart
  12. Scaling: replicas, Sentinel and Cluster
  13. When Redis fits, and when it does not
  14. Lab: Redis in Docker, start to finish
  15. War room: the cache that was also the database
  16. Common traps
  17. Cross-questions I get asked