Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading the question…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
System design interview question
Ticketmaster, BookMyShow, any sale where demand dwarfs supply: “design a ticket booking system” tests two things at once — surviving a surge of a million people in a minute, and never selling one seat twice while they fight over it. It is the classic question about contention. Here is how to walk into it, and then how to practise it until the answer is yours.
Practise Ticket Booking
Free with an account.
A ticketing site sells seats for concerts. For a popular show, a million people arrive in the same minute for fifty thousand seats. Each buyer picks specific seats, and a chosen seat must be held for them for ten minutes while they pay, so nobody else can take it in that time; if they do not pay, the seat returns to sale. No seat may ever be sold twice. The seat map is viewed far more often than seats are bought, and showing a seat as free for a few seconds after it was taken is acceptable, because the purchase itself is checked. The site must not fall over under the surge, even if that means buyers wait their turn.
Every phrase that matters in the brief is a requirement in disguise. Spot them before you draw a single box.
“a million people arrive in the same minute”
A line that absorbs the surge and admits buyers at a steady rate.
“held for them for ten minutes while they pay”
Holds that expire on their own.
“No seat may ever be sold twice”
Each sale decided in one atomic transaction.
“viewed far more often than seats are bought”
Serve the seat map from memory, where slightly stale is fine.
“even if that means buyers wait their turn”
Queue arrivals rather than serving or refusing everyone at once.
The same design always gets the same score, with the reason behind every requirement — then defend it against the trade-offs above.
The answers are not on this page on purpose. Build the design, and these are asked — and marked — once it is submitted.
© 2026 PlayCloudLabs. All rights reserved. Not affiliated with Amazon Web Services.