Handling the 'Thundering Herd' (Cache Stampede) problem.

Updated Apr 28, 2026

Short answer

Preventing multiple identical requests from hitting the DB at once when a popular cache key expires.

Deep explanation

Intermediate caching involves choosing strategies that balance speed with data accuracy. Preventing multiple identical requests from hitting the DB at once when a popular cache key expires.

Real-world example

Using Redis to store session data across a cluster of web servers.

Common mistakes

  • Using Write-Back caching for critical financial data without a robust safety net for data loss.

Follow-up questions

  • What is a 304 HTTP code?

More Caching interview questions

View all →