Caching, Redis & Cache Failure Modes

Question bank: caching trade-offs, Redis internals, Redis Cluster vs Sentinel failover mechanics, stampede, penetration, avalanche, hot keys, warming and stale-while-revalidate — fresh angles for 2026 loops.

About 120 minutes · 24 exam questions · 23 interview questions · 2 code labs

What you will learn

  1. Caching — when it pays, and when it makes things worse
  2. Redis — single-threaded execution, TTL semantics and durability limits
  3. Redis Cluster — slots, redirects, hash tags and failover
  4. Redis Sentinel — HA for one primary, not sharding
  5. Cache stampede — what the waiters do matters as much as the lock
  6. Cache penetration — misses the cache can never absorb
  7. Cache avalanche — many keys, or the whole tier, at once
  8. Hot keys — detect first, then pick a read or a write fix
  9. Cache warming — pre-fill deliberately, without becoming the incident
  10. Stale-while-revalidate — soft TTL, hard TTL, one refresher

Previous: Load Balancing, Gateways, Rate Limits, CDN & Multi-tenancy · Next: Indexes, Pools, Replication, Sharding, Transactions & Migrations