When temporary system memory expires under heavy load, thousands of requests swarm the main database at once, crashing the backend in milliseconds.
#CloudArchitecture#DistributedSystems#CacheStampede#ThunderingHerd
🧾 THE SCIENCE & EVIDENCE
Known as a 'Cache Stampede' or 'Thundering Herd', simultaneous cache expiration creates a demand spike far exceeding database capacity (Cache Stampede, Mutex).
5-Second Takeaway: ⚡ Add random timing to cache expiration so they never expire at the exact same second.
🧢 FACT OR CAP? Common Myth vs. Verified Truth
Common Myth (Cap): Letting all cache keys expire at the same time is optimal because it completely clears stale memory buffers.
Verified Reality: When temporary system memory expires under heavy load, thousands of requests swarm the main database at once, crashing the backend in milliseconds.