Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Architecture
Architecturehard

Cache stampede (thundering herd): what is it and how do you mitigate it?

Tags
#architecture#caching#cache-stampede#performance
Back to categoryPractice quiz

Answer

A cache stampede happens when many requests miss the cache at the same time (often when an item expires), so they all hit the database. Mitigations: TTL jitter, “single flight”/locks per key, stale-while-revalidate, and warming critical keys.

Related questions

Architecture
Anti-corruption layer (ACL): what is it and when would you use it?
#architecture#ddd#integration
Architecture
Event sourcing: what is it and what are the main trade-offs?
#architecture#event-sourcing#events
Architecture
What is an ADR (Architecture Decision Record) and why is it useful?
#architecture#documentation#decisions
Architecture
What is a reverse proxy and what is it commonly used for?
#architecture#reverse-proxy#http
Architecture
CORS: what is it and what does it NOT protect you from?
#architecture#web#cors
Architecture
Graceful degradation: what does it mean and how do you design for it?
#architecture#resilience#fallbacks