Skip to content
StackDecode
System Design
20. System Design Case StudiesAnimated

Ticket Booking Platform

Sell limited seats under heavy demand.

The idea

A waiting room and seat holds protect inventory when a popular event opens.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Fans (huge spik…Waiting roomSeat serviceSeat locks (Red…Payment
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A flash crowd arrives; a virtual queue admits users at a safe rate.

step:
1/4
at:
Fans (huge spike)
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Users enter a queue
  2. 2Select seats
  3. 3Seats are held for a short time
  4. 4Pay or release

Where it is used

Flash-sale design.

Watch out for

Fairness and thundering herds.

Related