All guide activities

CH-06 · CHAPTER REVIEW

Caching and content delivery

Solve these two questions after studying the chapter. State your assumptions and explain your reasoning.

Read. Try. Defend.

Companion to the Buildfest System Design guides.

Chapter review: two questions

Attempt both questions before opening the model answers.

Question 1

At 2,000 read requests/s, a modeled hit rate is 85 percent. Estimate source reads/s, then explain what changes during a complete cold start.

Reveal model answer

The simple steady-state estimate is 2,000 x 0.15 = 300 source reads/s before other work. At a cold start, hits may initially be zero, so all offered reads may try the source. Request coalescing, admission limits and warming can protect it; the steady-state estimate is not a recovery guarantee.

Question 2

Draw an old read, a new database write and invalidation in an order that refills the cache with stale data. State one acceptable freshness contract or stronger mitigation.

Reveal model answer

An old read obtains version A; a writer commits B and invalidates; the old read then fills A. A declared short stale window can be acceptable for some descriptions. Correctness-sensitive values may need version-aware updates or authoritative reads. TTL alone does not eliminate the race.

Answers stay in this tab. Download before leaving. This practice is not graded or saved to your account.