All Questions
Caching medium

A single cache key corresponds to a computationally expensive report. When it expires, 100 concurrent requests miss the cache and attempt to rebuild the report simultaneously, crashing the DB. Ideally, only one builder should run. What is this pattern called?

  1. A Cache Penetration: A pattern where requests for non-existent keys bypass the cache and hit the database.
  2. B Split-Brain: A scenario where a network partition causes multiple nodes to believe they are the primary master.
  3. C Thundering Herd (or Cache Stampede): A condition where concurrent misses for a single key cause redundant DB operations.
  4. D Write Amplification: A phenomenon where the actual volume of data written to storage is a multiple of the requested write.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions