Pattern 11 / CACHE
Cache Stampede Prevention
Use this when preventing one expired hot key from stampeding the database.
- Pressure
- Preventing one expired hot key from stampeding the database
- Mechanism
- Coalesce concurrent loads, refresh early with jitter, or let one requester hold a refresh lock
- Toll
- Locks, jitter, and stale-while-revalidate logic add operational complexity
