The Stampede – mid-level system design challenge

Your cache will be flushed mid-run. Survive the stampede - keep errors under 5% while it refills.

Requirements

Goal

Hold p99 latency under 800ms, error rate under 0.5% through every stage of the test plan, then compare your design with a reference design.

The test plan

  1. Warm cache: 2,500 requests per second.
  2. Cache flushed: the cache restarts empty at 2,500 requests per second.

Hint

The DB takes the full read load during a flush. More DB replicas absorb the herd while the cache recovers.

Solve it on the live simulator, free and in your browser.

Read the guide

More system design challenges