hard20 pts · first answer countscachingperformancesystem-design
Cache stampede on a hot key
The cached home-page feed key expires every 5 minutes. At expiry, thousands of concurrent requests miss the cache at once and overload the database. Which approach best prevents this?
Discussion 0
Join free to post in the discussion.
Related questions
- Redis TTL after SET with EXBackend Developer
- Slow email during signupBackend Developer
- What EXPLAIN tells youBackend Developer
- Asking for only a few fieldsBackend Developer
- Building a long string in a loopBackend Developer
- Checking if any rows existBackend Developer
- What a 92% cache hit ratio meansBackend Developer
- Which key an LRU cache evictsBackend Developer