Cache Invalidation, Consistency & Failure Modes
Invalidation strategies and races, stampede, penetration, avalanche, hot keys, warming, Redis down or full, stale local caches, fast-changing data, and debugging a hit-ratio drop.
About 90 minutes · 15 exam questions · 8 interview questions · 2 code labs
What you will learn
- Invalidation strategies
- The cache-aside race and how to close it
- Cache stampede (dogpile / thundering herd)
- Cache penetration: Bloom filters and negative caching
- Cache avalanche: correlated expiry and cache-tier failure
- Hot keys: detection and mitigation
- Cache warming after deploys, restarts and migrations
- Redis is down: fallback, circuit breaker, load shedding
- Redis memory full: policies and eviction surprises
- Stale local (L1) caches across instances
- Frequently changing data: cache it, restructure it, or don’t
- Debugging a sudden hit-ratio drop
Previous: Caching Patterns, Eviction & Redis/Memcached · Next: CDN, Edge Caching & Global Architecture