Interview › Databases & Caching
What is the blast radius of a cache outage, and how do you make the app degrade gracefully?
Databases & Caching · Advanced level
Answer
A cache outage can cause anything from minor latency to full outage. I reduce blast radius with low timeouts, circuit breakers, DB fallback limits, stale-if-safe responses, local last-known-good data, and graceful feature degradation.
Technical explanation
Cache failure should not automatically become total service failure unless the cache is an intentional primary store.
Use low timeouts and circuit breakers to avoid tying up app threads.
Degrade non-critical features and protect DB fallback with rate limits.
Hands-on example
Failure policy:
Redis connect_timeout=50ms, read_timeout=50ms, max_retries=1.
Product miss: DB fallback with limiter.
Recommendations failure: omit module.
Feature config failure: use last-known-good local copy.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Databases & Caching interview questions
- How do you handle cache warming after a restart or failover?
- How do you decide what to cache and what not to cache?
- How do you test a Redis or database failover without impacting users?
- How would you use Redis for distributed locking, and what are the caveats?
- How would you use Redis for rate limiting?
- What is the difference between Redis as a cache and Redis as a primary datastore?
- Why are some Redis commands (KEYS, FLUSHALL) dangerous in production?
- What is a cache hit ratio, and how do you improve it?