hard20 pts · first answer countscachingredisperformance
Cache expiry takes down the database
The homepage feed is cached in Redis for 60 seconds. Each time the key expires, thousands of requests miss at once and all run the same heavy query, spiking the database. What is the best fix?
Discussion 0
Join free to post in the discussion.
Related questions
- Revalidating a page every hourFull Stack Developer
- Default caching of fetchFull Stack Developer
- What use cache doesFull Stack Developer
- Caching one fetch for 10 minutesFull Stack Developer
- Measuring speed in dev modeFull Stack Developer
- The N+1 query problemFull Stack Developer
- Caching hashed static filesFull Stack Developer
- Three awaits, three times slowerFull Stack Developer