Design Ticketmaster
hard 55 minSell numbered seats to far more people than there are seats.
Remember it
The few things worth knowing cold, and how to make them stick.
Memory hook
Calm the door, tie the ribbon, pin the rosette.
Numbered ponies at a fair. A ribbon keeps a pony for five minutes and then falls off. A gold rosette after payment stays. At the gate, children hold numbered cards and only a few are inside at a time.
Cheat sheet
- Normal peak
- 17,400/s
- Giant sale
- 1.56M/s, 310K at origin
- Inside
- 5,000 for 3 min
- Admission
- 1,667 a minute
- Holds
- 83/s, 10 minutes
- Orders
- 28/s
- Pass
- 15 minutes
- Map
- 1 second old
- Shard key
- event
Spot it when you see
- Unique stock that cannot be restocked.
- A fixed minute when everybody comes.
- A purchase that takes minutes.
- Hold first, confirm later.
Tricks that stick
- Crowd and seat: two problems.
- A clock frees held, an answer frees paying.
- Authorise, sell, capture.
- Two expected, two changed.
Do not forget
- A distributed lock before counting.
- Charging inside a transaction.
- Expiring a seat that is being paid.
- Trusting the map.
- Unlocking a lock that is no longer yours.
- Autoscaling against a spike.