KatInterview

Design a High-Traffic Event Seat Reservation Platform

System DesignModel answer
HardModel answerSystem Designdistributed-systemsconcurrencypayments

Last updated

Design a seat reservation system for sold-out events that handles millions of concurrent users without overselling, covering holds, payments, and real-time availability.

Scenario

Your team is building the ticketing backend for a major live events platform. Every few weeks, a high-profile concert goes on sale and millions of fans hit the site simultaneously. The current system oversells seats and crashes under load. You are asked to design a replacement from scratch.

What you need to design

Walk through the full system: data model, API surface, concurrency strategy, consistency guarantees, scaling approach, and failure handling. A strong answer reasons through trade-offs rather than listing buzzwords.

Core capabilities

  • Display a venue seat map with live availability.
  • Let a user select specific seats and reserve them temporarily. That reservation should expire automatically if the user does not complete checkout.
  • Process payment in a way that is safe to retry and impossible to double-charge.
  • Prevent selling the same seat twice under any conditions, including traffic spikes and partial failures.
  • Queue excess users during a hot on-sale rather than dropping or crashing.
  • Support cancellations, refunds, and payment disputes.
  • Rate-limit and detect bots.
  • Maintain a complete audit trail of every state change.

Non-functional targets

Use a large-scale on-sale as your sizing anchor: a 60,000-seat venue with 10 million users trying to buy tickets in the first ten minutes. Discuss how your design handles the read/write asymmetry that creates.

What the interviewer expects

  • Concrete API definitions (not vague service boxes).
  • A data model with table shapes and key constraints.
  • A reasoned choice between optimistic and pessimistic locking, including when you would switch strategies.
  • Where you use strong consistency versus eventual consistency, and why each is safe.
  • How idempotency keys flow end-to-end through the checkout and payment path.
  • How hold expiry is enforced correctly, even if the background worker lags.
  • How the system behaves when the payment processor times out.
  • At least one concrete failure mode and its recovery path.

Hints

Hint 1

Start by identifying the core invariant — a seat can be sold at most once — and work backwards to what consistency guarantees that requires. Not every part of the system needs the same guarantees.

Hint 2

The read/write ratio is extreme: millions of users are reading the seat map, but successful writes are bounded by inventory size. That asymmetry should drive where you put a cache and where you insist on hitting the database.

Hint 3

Think about hold expiry as two separate problems: correctness (a hold that should be expired must never block a new purchase) and consistency (users need to see the seat become available again). Those can use different mechanisms.