08:00: 15 trips.0 from shelves · 15 to the depot · 15 trips
Chapter 5 of 7
Everyone at once
Prices are right now. At noon Larkspur starts a flash sale on hinges and tells every customer at once.
This chapter: What happens when everyone asks for the same thing at the same moment?
About this chapter
You will learn
- A stampede: many misses for one item at once
- Request coalescing: one trip shared by everyone waiting
- Stale-while-revalidate: serve the old copy while fetching a new one
Words you’ll meet
- Stampede
- Many requests missing on the same item at once, each sending its own trip.
- Request coalescing
- Letting requests for the same item share one trip, the rest waiting on its reply.
- Stale-while-revalidate
- Serving an expired copy for a short window while one trip fetches a fresh one in the background.
Step 1 of 5
At 12:00 the sale price is purged everywhere, and the whole rush misses at the same moment: a .
Move the clock to 12:00.