All guide activities

SD-13 · GUIDED WORKSHEET

Buy speed with a freshness policy

Design a cache for public product descriptions without caching private prices.

Read. Try. Defend.

Companion to the Buildfest System Design guides.

Your practice brief

  1. State a maximum acceptable staleness and the fields included in each cache key.
  2. Draw a write/invalidate/read race that can refill an old value.
  3. Compare request coalescing with TTL jitter and choose a fallback for cache failure.

Your response stays in this tab. Download it before leaving. This self-guided worksheet is not graded or saved to your account.

Reveal reasoning after attempting

Coalescing limits duplicate work for one missing key; jitter spreads expirations across keys. They address different stampedes. Correctness-sensitive values may need source reads or stronger version checks even when descriptions are safely cached.

Other approaches can be valid. Check your assumptions, correctness, failure handling and trade-offs.