Scale AI: Design a Ticket Booking System
Design a ticket platform that survives a flash sale, releases unpaid holds on time, always gives tickets to people who paid, and offers returned tickets to a waitlist in order.
Problem statement
This is Scale AI's version of Design a Ticket Booking System, built from Scale AI's interview report.
Design a ticket booking platform for live events. Two moments matter most: a flash sale, when many people try to buy at the same time, and the time after an event sells out, when some tickets come back.
This round focuses on a clear user flow and a diagram that shows every component, not on capacity math or deep distributed-systems detail.
For this exercise, assume:
Events and tickets. Each event has a fixed number of tickets. There is no seat map: every ticket for an event is the same and has one price. One purchase is 1 to 4 tickets. Users must be signed in to buy.
Purchase page timeout. When a user chooses how many tickets they want, the system holds those tickets for them for 10 minutes while they pay. Nobody else can buy held tickets. If the user has not paid when the 10 minutes run out, the hold ends and the tickets go back.
Payment. Payment goes through an outside payment provider. A charge can succeed, be declined, or time out with no clear answer, and the provider's result notice can arrive late. Anyone who is charged must get their tickets.
Sold out. When every ticket is either sold or held, new buyers see the event as sold out and can join its waitlist.
Returns and the waitlist. A ticket holder can return tickets any time before the event starts. The refund goes back through the payment provider and is not the focus here. While anyone is on the waitlist, tickets that come back, from a return or from a hold that ran out, are offered to waitlisted people in the order they joined. Each person who gets an offer is notified and has 30 minutes to buy before the offer passes to the next person.
Out of scope: seat maps, event search, resale between users, and bot detection.
What to build
- A signed-in user can open an event page, see whether tickets are left, and hold 1 to 4 tickets for 10 minutes. Held and sold tickets together never go above the event's ticket count.
- The user can pay for held tickets before the hold runs out and then gets their tickets. Anyone who is charged gets their tickets. A hold that runs out unpaid gives its tickets back.
- When every ticket is sold or held, new buyers see the event as sold out and can join the event's waitlist, asking for 1 to 4 tickets.
- A ticket holder can return tickets before the event. Tickets that come back go to waitlisted people in the order they joined. Each one is notified and has 30 minutes to buy before the offer moves to the next person.
At scale
- A popular event has about 20,000 tickets. When it goes on sale, up to about 200,000 signed-in users may try to buy in the first few minutes, so it can sell out in minutes.
- The waitlist for a sold-out event can grow to tens of thousands of people. Tickets come back slowly after that: a few hundred from unpaid holds right after the sale, then a few hundred returns per day.
- A payment usually takes a few seconds, but it can time out after about 30 seconds with no clear answer. The provider's result notice can arrive minutes later.