Course map

Project 16

Ticket booking and flash sale

High concurrency, reservations

Start after Part 8

Key topics 71, 97, 110, 137

Architecture Services

Brief

Event ticketing with assigned seats, plus flash-sale drops: enormous synchronized demand — half a million people at the on-sale second — for scarce inventory.

Targets

500k concurrent users at on-sale · no double-sold seat · fair access (no bot takeover) · the browse tier survives even when purchase queues back up · graceful "sold out".

Must cover

  • Seat holds with expiry — leases per seat (→ 137).
  • Waiting room — queue-based admission at the rate purchase can sustain (→ 110).
  • Bot limits — rate limiting and queue tokens (→ 96).
  • Releasing seats when payment times out — the expiry/payment race handled (P).

Design challenges

  1. The spike architecture (→ 97, 110): a virtual waiting room turning an overload problem into a throughput problem — admission control at the front door.
  2. Seat holds (→ 71, 137): short-TTL lease per seat — Project 7's engine under maximum adversity; hold → purchase → confirm, with the expiry races handled.
  3. Seat-map reads for 500k viewers while holds mutate: cached, slightly stale views with truth enforced at purchase time (→ 83, 129).
  4. Bot and abuse defense as architecture: rate limits, queue tokens, device signals (→ 96; → 167 — ahead, Part 10).
  5. A designed degradation ladder: when demand exceeds plan, what breaks first — on purpose (→ 154 — ahead, Part 9; → 193 — ahead, Part 12).
  6. The capacity plan for the on-sale minute: method step 6 is most of this project (→ 20, 102).

Out of scope

Dynamic pricing; resale marketplace.

Search the guide