redis cache stampede after a hot key expires
Redis 7.2 caching. A few hot keys expire at the same time and all our app instances simultaneously hit the database to recompute them, spiking DB load. Classic stampede I think. What's the usual mitigation? We're seeing database CPU spikes when a batch of these expires at once, and I'd like to understand the tradeoffs before picking a fix. Any advice on which direction is less risky would help.
4 replies