Ticketmaster system design: selling seats without double-booking
How to design Ticketmaster in real interview order: one hot onsale as the number that matters, a light API with separate hold and pay steps, an edge, a waiting room, a booking service and a seat inventory built in passes, one booking walked from queue to ticket, a lab on two fans racing for one seat, a lab on the onsale surge and the waiting room's admission rate, a lab on how long to hold a seat, and what happens when each part fails.
The 1-minute answer
How this page follows the interview
Each phase is a section below, in the order you'd present it. Click a phase for what to say, what to write, and the trap.
Ticketmaster hasn't published its inventory design, so the booking path here is the standard interview answer, built from database docs and other ticketing companies' public talks. New to locking, idempotency or queues? Foundations F05 (databases), F09 (coordination), F11 (idempotency and sagas) and F12 (scaling and performance) cover the building blocks.
Requirements and numbers
Agree what's strict and what can bend, then size two very different days. The yearly average is small; one hot onsale is not. Change any input: each number comes with the decision it forces.
Functional
- Browse and search events
- See a seat map with live availability
- Hold seats for a few minutes while paying
- Pay and receive tickets
- Wait in a queue for hot onsales
Non-functional
- A seat is sold at most once; a fan is charged at most once
- Browsing and the queue stay up even when booking is paused
- Hold answer under 500 ms at p99 for admitted fans
- Seat map at most a couple of seconds stale
- Fair to fans; hard for bots
Out of scope (say it)
Resale and transfers, dynamic pricing, organiser tools, venue entry scanning, recommendations.
Capacity calculator
Every input is an assumption 🔶: say it out loud. Anchors: 346 million fee-bearing tickets in 2025 ✅ LYV FY2025; 3.5 million fans registered for one tour's presale, 1.5 million invited, about 40% of invited fans buy, about 3 tickets each, about an hour to sell through a stadium show ✅ TM 2022 statement. Views per order, requests per minute and the peak factor are teaching values.
- A day is 86,400 seconds; a year is 31.5 million. The average tells you almost nothing here.
- Size the onsale separately. Fans × requests per minute ÷ 60 is what hits you without a queue.
- Little's law inside the room. Shoppers inside = admitted per minute × minutes each one stays.
Core entities and the API
Two kinds of calls: cacheable reads (search, event, seat map) and a few exact writes (hold, order, release). What they listen for: hold and pay as separate steps, a 409 with alternatives, and an idempotency key made by the client.
| Entity | Key fields | Note |
|---|
What the seat map shows, and why
A seat's row says whether it's free, held or booked. Tick what has happened to seat A12 and see what the map shows and whether a new hold would win.
What Ticketmaster says
- A time limit on holding tickets before you finish buying, "to ensure tickets are available to as many people as possible". ✅ TM help
- The length varies: "We set the time length according to ticket demand." ✅ TM help
- When it runs out, "we release your tickets for others to buy." ✅ TM help (UK)
- From the queue, when it's your turn your spot is held for 10 minutes to start shopping. ✅ TM blog 2025
How the hold is stored isn't public; the row-level design here is the interview answer. 🧭
High-level design
Build it in passes and say why each box exists. Click any box to see what it does, what it owns, what's inside it and what you'd watch.
Walk one booking, box by box
Asha wants two seats for night one of a stadium show in Mumbai. She queues, picks A12 and A13, pays and gets tickets; Ravi taps A12 a moment after her. Each step lights up the path and shows what goes over the wire, what's stored and how long it takes.
Arrows show who calls whom, and the numbers give the order. Replies go back along the same line.
Keeping the seat map fresh
Tens of thousands of fans look at the same section at once. These six details keep the map live without loading the one database that takes the holds.
Data and database choices
One small table carries the whole correctness argument: a row per seat per event, with the hold on the row. Everything else is cached, derived or asynchronous.
| Data | Pick | Considered | Why not those |
|---|
The one query to know: the hold
-- Hold A12 and A13 for 10 minutes: one statement, all or nothing.
-- Illustrative; Ticketmaster's own schema isn't public.
UPDATE event_seats
SET status = 'held', hold_id = :hold,
hold_expires_at = now() + interval '10 minutes'
WHERE event_id = :event
AND seat_id IN ('A12', 'A13') -- sorted: same lock order
AND (status = 'available'
OR (status = 'held' AND hold_expires_at < now()))
RETURNING seat_id;
-- 2 rows → 201. Fewer → ROLLBACK, 409 with nearby free seats.
-- Confirm after payment: only if the hold is still ours.
UPDATE event_seats
SET status = 'booked', order_id = :order
WHERE event_id = :event AND hold_id = :hold AND status = 'held';
-- 0 rows → the hold was lost: void the payment, tell the fan.Illustrative PostgreSQL. The condition in the WHERE clause is the point. 🧭
Why one statement is safe
- The second updater waits. If another transaction is updating the row, the would-be updater waits for it to commit or roll back. ✅ Postgres docs
- Then it re-checks. "The WHERE clause is re-evaluated to see if the updated version of the row still matches." Held now, so 0 rows. ✅ Postgres docs
- Lock in a fixed order. Sorting seat ids avoids deadlocks on multi-seat holds: "acquire locks on multiple objects in a consistent order". ✅ Postgres docs
- Expiry is part of the condition. An expired hold counts as free, so no sweeper has to run first. 🧭
More database questions
Deep dive: two taps, one seat
Double bookings come from three gaps: between reading "free" and writing "held", between a hold expiring and a late payment landing, and between a payment and its lost response. One conditional write, a hold check on confirm, and idempotency keys close them. Pick a case, then switch a rule off and watch what breaks.
Lanes: Asha, Ravi, the booking service, the seat database, payments. Arrows are numbered in order; red ones fail, are lost or are a refund. 🧭 Teaching sequence, not Ticketmaster's real calls.
How often do holds race?
Without a conditional write, two holds on the same seat inside the read-to-write gap both win. Chance per hold ≈ 1 − e^(−holds/s × gap ÷ seats people pick from).
The rules this lab teaches
- The database picks the winner. Put "only if free" in the write itself; never decide in the app between a read and a write. ✅ Postgres docs
- Check the hold, not the seat, on confirm. A paused or slow client can wake up after its hold is gone; reject its write by hold id, like a fencing token. ✅ Kleppmann 2016
- Keys from the client. Retries reuse the key; the server and the payment provider replay the first result. ✅ Stripe docs
- A Redis lock is not enough on its own. Its TTL can expire under a paused client; the database write still needs the check. ✅ Redis docs
Deep dive: the onsale surge and the waiting room
Millions arrive in minutes for tens of thousands of seats. Without pacing, refused requests still cost work and fans refresh harder, so throughput collapses. A waiting room admits people at a tested rate; bot checks decide who gets a place. Pick a preset, then change the numbers.
Top, log scale: requests per second offered to the booking tier (dashed) and served (teal), with its capacity as a line. Bottom: share of tickets sold (apricot). Fluid model in 1-second steps over two hours; bots send 10× the requests and all arrive in the first minute; a refused request costs 10% of a served one; fans who keep failing give up after ~15 min. Teaching numbers. 🧭
Three levers, in order
- Pace at the edge. Hold everyone in a waiting room and admit at a rate the booking tier has been tested at; tokens, not sessions, so booking never calls the queue. ✅ SeatGeek 2022
- Filter before the line. Registration and bot checks decide who queues; a fast script at the front of a first-come line beats every fan. ✅ TM 2022 statement
- Admit below the cliff. About capacity ÷ requests per order, with headroom, adjusted from the exit rate; pause rather than fail at checkout. 🧭
Real numbers to quote
15 Nov 2022: 3.5 billion system requests, four times Ticketmaster's previous peak; about 15% of interactions had issues; sales slowed and paused; over 2 million tickets sold that day. ✅ TM 2022 statement "Three times the amount of bot traffic than we had ever experienced." ✅ Senate 2023
22 Sep 2024: BookMyShow said 13 million fans tried for two Coldplay shows in Mumbai; fans reported queues of hundreds of thousands and the site reportedly crashed. ✅ Pollstar 2024
Deep dive: how long to hold a seat
A hold timer trades two failures: too short and real buyers lose seats at the bank's page; too long and abandoned holds make the event look sold out. Checkout time is modelled as log-normal from a median and a slow tail; Little's law gives the seats held at once. Pick a preset, then change the numbers.
What the numbers mean
- Timeouts = share of real checkouts longer than the timer (plus the extension). Aim for 1–2%; the slow tail is OTP, 3-D Secure and UPI approvals. 🧭
- Seats held at once = holds/s × seats per hold × average hold time. Abandoned holds last the whole timer. 🧭
- Hoarding is the bot version: hold, let it expire, hold again. Cap holds per account and card. 🔶
What's public
Ticketmaster sets the time limit "according to ticket demand", so it varies by event and time of day. ✅ TM help
SeatGeek's team describes reserving a seat for a time window while the purchase completes, returning it to sale if payment fails. ✅ SeatGeek 2022 Actual timer lengths and abandonment rates aren't published. ❓
A seat's lifecycle
For one onsale, every seat is a small state machine. Click events to move it; ones that can't happen from the current state are disabled. Each event shows what fires across the system.
Edge cases interviewers love
Failure, monitoring and recovery
A ticketing system fails loudly at the onsale (errors, stalls) and quietly afterwards (refunds for lost holds, a map that says sold out). Click a box to take it down: red is the failed part, amber is its blast radius. Each answer covers impact, degraded mode, the alert, automatic and manual recovery, and how you'd trace it.
Tracing it back: a normal hold vs one during an overload
Every span carries the hold id and event id. Times are seconds from tapping Hold. In the slow trace the booking tier was admitted too fast: the request waits for a database connection, then for row locks on a hot section, then the fan retries into a gateway timeout.
How one failure becomes three
What you'd alert on (SLOs)
| Signal | Target | Alert |
|---|
Onsale playbook
The toolkit
Name the technique, then say where it goes in this design.
Making it fast, and who owns what
The database work is milliseconds; people decide the rest: minutes in the queue, a minute at the bank. Bars are sizing estimates, not measured figures.
| Team | Owns | Paged when… |
|---|
Senior follow-ups beyond the happy path
Interviewers pick from these themes once the design is on the board. Have one concrete answer per theme, tied to this design.
Practice ladder
Real interviews go level by level. Answer out loud before opening each one. Levels 6–7 are where Senior becomes Staff.
Sources
- Taylor Swift | The Eras Tour onsale explained, Ticketmaster (19 Nov 2022)
- Testimony of Joe Berchtold, President and CFO, Live Nation, US Senate Judiciary Committee (24 Jan 2023)
- Live Nation Entertainment full year and fourth quarter 2025 results (19 Feb 2026)
- Why is there a time limit for checking out? Ticketmaster Help (checked Oct 2026)
- Time limit when buying tickets, Ticketmaster Help UK (checked Oct 2026)
- How a Ticketmaster queue works, Ticketmaster blog (2 Oct 2025)
- Smart Queue, Ticketmaster Business (Dec 2025)
- Discovery APIs overview, Ticketmaster developer docs (checked Oct 2026)
- Handling high-demand ticket on-sales, Anderson Parra and Vitor Pellegrino (SeatGeek), InfoQ podcast (30 May 2022)
- How SeatGeek successfully handles high-demand ticket sales, QCon London 2022 slides
- Virtual Waiting Room on AWS: architecture overview, AWS Solutions (checked Oct 2026)
- Explicit locking, PostgreSQL 18 documentation
- Transaction isolation (Read Committed), PostgreSQL documentation
- How to do distributed locking, Martin Kleppmann (8 Feb 2016)
- Is Redlock safe? Salvatore Sanfilippo (Feb 2016)
- SET command, Redis documentation (checked Oct 2026)
- Idempotent requests, Stripe API documentation (checked Oct 2026)
- BookMyShow buckles under Coldplay onsale in India as 13 million try to secure tickets, Pollstar (26 Sep 2024)
- Ticketmaster problem breakdown, Hello Interview (third party, used to cross-check interview expectations)
Checked October 2026. Onsale numbers are Ticketmaster's own (the Eras Tour statement of 19 November 2022: 3.5 million registered, 1.5 million invited, about 40% of invited fans buying about 3 tickets, 3.5 billion system requests at four times the previous peak, about an hour to sell through a stadium show) and Live Nation's Senate testimony of 24 January 2023 (three times the bot traffic ever seen). Hold timers and queue behaviour are from Ticketmaster's help pages and its October 2025 queue post; yearly volume is Live Nation's 2025 results (346 million fee-bearing tickets). Ticketmaster hasn't published its inventory or queue internals, so the booking path is the standard interview answer, tagged as such, built on PostgreSQL's locking and isolation docs, Kleppmann's 2016 post on locks and fencing, Redis's SET docs and Stripe's idempotency docs. Waiting-room design is from SeatGeek's QCon London 2022 talk and InfoQ podcast and AWS's Virtual Waiting Room solution. The BookMyShow figure (13 million fans, September 2024) is Pollstar's report of BookMyShow's statement. Hello Interview is a third-party prep site, used only to cross-check what interviewers expect. All three labs use rounded teaching values.
System Design Mastermind · Classics
Series homeAll of Classics
6 published · 4 comingThe problems almost every loop draws from.
Uber system design, reverse-engineered: from tap to pickup
In-memory geo index sharded by map cell → rank nearby drivers by road ETA → offer to one driver with a 15 s timeout → accept with compare-and-set → push updates to both apps.
Rate limiter system design: fair limits at a million requests a second
Check every request once in the API gateway → one atomic Lua script per request on the caller's shard of a sharded Redis (token bucket for per-second, window for per-day) → 429 + Retry-After, or forward with RateLimit headers → local cache for keys already over → each rule fails open or closed on purpose.
WhatsApp system design: chat, offline delivery and the three ticks
One long-lived encrypted connection per device → the chat server stores a copy per recipient device in a replicated offline queue, then acks (✓) → session lookup, forward or push → the device saves and acks, the copy is deleted (✓✓) → a read receipt when opened. Client-made ids and dedupe at both ends, backoff with jitter on reconnect, Sender Keys for groups.
Ticketmaster system design: selling seats without double-booking
Cached reads for browsing → a seat inventory with one row per seat, sharded by event → a hold is one conditional UPDATE (only if free or expired) with a 10-minute timer → pay with a client-made idempotency key → confirm only if the hold is still yours, plus an outbox for tickets. A waiting room admits fans at the rate booking can serve.
News feed system design: fan-out, celebrities and ranking
Write each post once → fan-out workers push its id into active followers' capped Redis timelines → accounts above ~1M followers are merged at read time instead → the feed service gathers ~1,500 candidates, a light model trims them, a heavy model predicts actions, a weighted sum orders them → deletes and blocks are checked at read time, pages use a cursor.
Notification system design: push, email and SMS without spam, drops or duplicates
One Notify API with an idempotency key → a router checks dedupe, preferences, caps and quiet hours, picks live devices → per-channel queues with a transactional lane apart from bulk → workers call APNs, FCM, email and SMS with priority, expiry and a collapse id, retry 429s with backoff and delete dead tokens → campaigns paced below the provider quota, OTPs fall back to SMS.