The senior engineer's craft · L1The system design method, worked on Ticketmaster

The system design method, worked on Ticketmaster

A repeatable five-step method for a 45-minute design interview, worked through on a ticket booking system like Ticketmaster.

L1 Must-knowThe senior engineer's craft18 min read
Fact-checked by AI against cited sources · Human review pendingLast reviewed 21 Oct 2026 · How we check content
Senior at work · lesson 26 of 26
Section 1 of 8

What broke

On 15 November 2022, Ticketmaster opened a presale for Taylor Swift's Eras Tour. Over 3.5 million people had pre-registered as Verified Fans. About 1.5 million of them got codes to join the sale. The other 2 million were put on a waiting list. 4

On the day, Ticketmaster says, "the staggering number of bot attacks" and fans without codes drove huge traffic. The site got 3.5 billion total system requests, four times its previous peak. 4

To keep the systems up, it slowed down some sales and pushed others back. Fans waited longer in the queue. Ticketmaster estimates that about 15% of interactions on the site had issues. Some fans lost tickets they had already put in their cart, because codes failed to validate. 4

Over 2 million tickets were still sold that day. 4 Two days later, Ticketmaster cancelled the general public sale. The reason it gave was "extraordinarily high demands on ticketing systems and insufficient remaining ticket inventory". 5

Hello Interview has a full worked answer for "design Ticketmaster". 2 The story shows why the problem is hard. It tests the whole method: what to build, what must never go wrong, and what happens when demand is far bigger than supply.

Section 2 of 8

The idea in simple words

A system design interview is a conversation of about 45 minutes about a big, vague problem. 3 There is no single right answer. The interviewer wants to see how you think: how you clarify the problem, choose a design and explain trade-offs.

Without a method, people start drawing the parts of the system right away. Twenty minutes later, they find they solved the wrong problem. A method gives you a path, and it lets you lead the conversation.

Hello Interview's framework has five main steps, plus an optional data flow step that we skip here. 1 Alex Xu's book uses four steps that cover the same ground: understand the problem, propose a high-level design, deep dive, and wrap up. 3

The key idea. First agree on what to build. Then build the simplest design that works. Then spend your best time on the parts that are hard. Each step leaves an artefact on the board that the next step uses.

Section 3 of 8

How it works

Step through the five steps for a ticket booking system, with what each one puts on the board. Use Next and Back, or the ← and → keys.

The design method: each step leaves something on the board1 · Requirements · ~5 minview events · search · bookno double booking · search < 500 ms10 M users for one event · reads 100:1 2 · Core entities · ~2 minEvent · Venue · Performer · Ticket · Booking 3 · API · ~5 minGET /events/search?keyword=…GET /events/:id → seatsPOST /bookings/:eventId 4 · High-level design · 10–15 mingateway → event, search, bookingPostgres · search index · payments 5 · Deep dives · ~10 minseat hold with a 10-min TTLwaiting room for the surgefast search · cache the seat map ✓ every requirement has an answer SeniorPath
  1. Requirements first. Pick the top three things users do, then the qualities that matter most: no double booking, fast search and a huge surge. Write them on the board.
  2. Name the core entities in two minutes. These are the nouns your API and database will use. Do not design every column yet.
  3. Write the API. One endpoint per main user action is enough. The user comes from the login token, not from the request body.
  4. Draw a simple design that meets the functional requirements. Stay simple here, and say out loud what you will improve later.
  5. Now go deep where the hard parts are: holding a seat, surviving the surge and fast search. Each deep dive answers one non-functional requirement.
  6. Check the board against your first list. Every requirement should map to a part of the design.
Step 1 of 6

Step 1. Requirements (about 5 minutes)

Split them into two lists. Functional requirements are what users can do. Non-functional requirements are the qualities the system must have, such as speed, scale and consistency. Hello Interview advises picking the top 3 functional ones. 1

For Ticketmaster, the breakdown chooses three: view events, search for events, and book tickets. 2 The key non-functional ones are: 2

  • Consistency for booking. No seat is ever sold twice.
  • Availability for search and viewing. Slightly old data is fine here.
  • Scale for popular events. For example, 10 million users for one event.
  • Fast search, under 500 ms. Reads far outnumber writes, about 100 to 1.

Say out loud what is out of scope, for example dynamic pricing or an admin tool. Xu's first rule is to ask, not assume. 3

Back-of-envelope numbers

Do maths only where it changes the design. 1 Here it does. The 10 million comes from the breakdown. 2 The other numbers are our own guesses, so label them as guesses in the interview:

  • 10 million fans arrive in the first 10 minutes. That is 10,000,000 ÷ 600 s ≈ 17,000 new users per second.
  • Each one reloads the seat map about 10 times in those 10 minutes. That is roughly 170,000 reads per second on one event.
  • A stadium has about 70,000 seats. So at most 70,000 bookings can succeed, while millions of people try.

The lesson from the numbers: reads need caching, and the write path needs a gate in front. See latency numbers and estimation for the method.

Step 2. Core entities (about 2 minutes)

List the main nouns. Do not design every column yet. 1 For Ticketmaster: Event, User, Venue (with its seat map), Performer, Ticket (one per seat, with a status) and Booking (one order of tickets). 2

Step 3. API (about 5 minutes)

Write one endpoint per main user action. Hello Interview suggests REST, plain HTTP endpoints such as GET /events/{id}, unless you have a reason not to. Take the user from the login token, not from the request body. 1

GET  /events/search?keyword=&start=&end=&page=   → Event[]
GET  /events/:eventId                            → Event, Venue, Performer, Ticket[]
POST /bookings/:eventId  { ticketIds, paymentDetails }  → bookingId

These follow the breakdown's own API. 2

Step 4. High-level design (10–15 minutes)

Draw the simplest design that meets the functional requirements. 1 Clients reach an API gateway. Behind it sit an event service, a search service and a booking service. The breakdown keeps bookings and tickets in one Postgres database, so a transaction can update both. A payment provider takes the money. 2

Stay simple here. When you see a problem, name it and say you will come back to it. 1

Step 5. Deep dives (about 10 minutes)

Now go back to the hard non-functional requirements. Each deep dive should answer one.

Holding a seat during payment. Payment can take minutes. Holding a database lock that long is a bad idea. It ties up database resources and raises the risk of deadlocks. 2 Instead, put a hold on the seat that expires on its own. The breakdown uses Redis with a 10-minute TTL. 2 In Redis, SET seat:42 user7 NX EX 600 sets the key only if it does not exist yet, and it expires after 600 seconds. 6 The docs advise a random token as the value, so a client can only delete its own lock. 6

Two warnings make a senior answer. The Redis docs discourage this simple lock pattern in favour of their Redlock algorithm. 6 And the database must still be the final check when the seat is sold. Use the conditional update from inventory and flash sales. Make the payment step safe to retry, as in idempotency, retries and timeouts.

Surviving the surge. Put a virtual waiting room in front of seat selection. In the breakdown, users join a queue and are let in from the front, from time to time or as tickets sell. The booking service rejects users who were not let in. 2 Products exist for this. Cloudflare's Waiting Room admits visitors by a limit on total active users and on new users per minute. Others wait in first-in-first-out order and see an estimated wait. 7 Add rate limiting per user to slow down bots.

Fast search and seat maps. Use a search index instead of LIKE '%…%' queries on the database. 2 Cache event and venue data, which rarely change, with long TTLs. Cache seat availability only with a short TTL. 2 See caching and cache stampedes.

Timeboxing and driving

Keep a clock in view. If requirements take 15 minutes, you will have no time for deep dives. Talk while you think. Xu warns: "Don't think in silence." 3

Lead the conversation, but check with the interviewer. Say "I plan to go deep on the seat hold next. Is that where you want to spend time?" Hello Interview says senior candidates should find the hard parts and lead the deep dives. It also says to give the interviewer room to ask questions. 1 Its breakdown expects a senior to go deep on topics such as a distributed lock for holds, and to explain trade-offs. A mid-level answer can use a simpler fix, such as a ticket status with a timeout. 2

Section 4 of 8

Trade-offs

ChoicePrevents double booking?CostUse it when
Database lock held during paymentYes Locks last minutes, tie up the database and risk deadlocks.Avoid for long user steps.
Ticket status with an expiry time, checked in short transactionsYes Simple. Expired holds need a cleanup job, or a check at read time.Most systems, and a solid mid-level answer.
Redis hold with a TTL, plus a final database checkYes One more system to run.Big on-sales with many holds per second.
Virtual waiting roomNot directly. It limits load.Fans wait, and you must keep the queue fair.Known surges, such as a big presale.
Showing live seat maps to everyoneNo It only shows state.Heavy reads, and maps go stale in seconds.Normal events. Hide them behind the queue for huge ones.

Simple rule: make the database the final judge of who gets a seat. Use holds and the waiting room to keep the load on the database low.

Section 5 of 8

At work: how a senior uses this

The same method runs a good design review at work. Only the clock changes, from 45 minutes to a few weeks.

  • Start every design doc with functional and non-functional requirements, and a list of non-goals. See design docs and RFCs.
  • Ask for the numbers that change the design: peak users, reads to writes, data size. Write the assumptions down.
  • In a review, ask the author: "Which requirement does this part serve?" A box with no requirement is extra cost.
  • Spend review time on the riskiest parts, not on naming or the parts everyone agrees on.
  • For each deep dive, ask for two options and why one was chosen.
  • Before launch, ask what happens at 4 times the expected peak. Ticketmaster's presale reached four times its previous peak. 4
Section 6 of 8

With AI

What to ask the agent

"Act as a system design interviewer. Ask me to design a ticket booking system, then stop me if I skip requirements or run over time on any step."

"Here are my requirements and my design for seat booking. List every way two users could end up with the same seat, and which part of my design stops each one."

"Check my back-of-envelope estimate: 10 million users in 10 minutes, 10 seat-map reads each. Show each step with units."

What to check yourself

  • Every part of the design maps to a requirement you wrote first.
  • The agent did not quietly add requirements or skip the non-functional ones.
  • Double booking is stopped by the database, not only by a cache or a lock that can expire.
  • Numbers come with units and labelled assumptions. Agents often state guesses as facts.
  • You can explain every trade-off in your own words. An interviewer will ask "why?"
Section 7 of 8

Check yourself

1. The interviewer says "Design Ticketmaster." What should you do in the first five minutes?

Show answer

Agree on the top functional requirements and the key non-functional ones, such as no double booking. Requirements decide everything that follows. Without them you may design the wrong system, or spend your time on parts nobody asked for.

2. Which requirement is the main reason the booking path needs strong consistency?

Show answer

Two people must never buy the same seat. Search can show slightly old data, but a seat sold twice is a real failure. So booking chooses consistency and search chooses availability.

3. A user picks a seat and starts paying, which can take minutes. What is the best way to stop another user from buying it, without tying up the database?

Show answer

A hold on the seat that expires after a set time, such as 10 minutes. A hold with a TTL keeps the seat for one user and frees it on its own if they leave. A database lock held for minutes ties up the database and raises the risk of deadlocks.

4. Ten million fans arrive for one event at the same minute. Which part protects the booking service most directly?

Show answer

A virtual waiting room that admits users at a rate the system can handle. The waiting room limits how many people reach seat selection and booking at once. Caching helps reads, but not the write rush.

5. You have 10 minutes left and your high-level design works. What is the best use of the time?

Show answer

Go deep on the hardest non-functional requirement and explain the trade-offs. Deep dives show seniority. They prove the design meets the hard requirements, and they show you can compare options.

Your progress is saved only in this browser. Export it to keep it safe.

Was this clear?
Report a mistake (opens GitHub in a new tab)
Section 8 of 8

Go deeper

Show 7 sources and related lessons
  1. Hello Interview, “System Design Delivery Framework” (System Design in a Hurry) (opens in a new tab)
    The five steps with time boxes, what each step should produce, and tips for each.
  2. Hello Interview, “Design a Ticket Booking Site Like Ticketmaster” (problem breakdown) (opens in a new tab)
    A full worked answer, with requirements, API, seat holds, a virtual queue, search and what each level is expected to show.
  3. Alex Xu, System Design Interview – An Insider's Guide, “A Framework for System Design Interviews” (ByteByteGo) (opens in a new tab)
    A four-step framework with time for each step in a 45-minute interview, and a list of dos and don'ts.
  4. Ticketmaster, “Taylor Swift | The Eras Tour Onsale Explained” (19 November 2022) (opens in a new tab)
    Ticketmaster's own account of the presale, with registrations, traffic, errors and tickets sold.
  5. NBC News, “Ticketmaster cancels public sale of Taylor Swift tour, citing high demand for tickets” (17 November 2022) (opens in a new tab)
    News report on the cancelled general sale, with Ticketmaster's stated reason.
  6. Redis documentation, “SET” command (opens in a new tab)
    The NX and EX options, the simple lock pattern built on them, and its limits.
  7. Cloudflare documentation, “About Waiting Room” (opens in a new tab)
    How a waiting room admits users by total active users and new users per minute, in first-in-first-out order.

Related: Inventory, overselling and flash sales · Latency numbers and back-of-envelope maths · Requirements and non-functional needs · Deep dives and explaining trade-offs · What interviewers expect at each level (coming soon) · Scaling from zero to millions of users · Big-tech interview loops

Term

See full entry

Jump to a section

  1. 1What broke
  2. 2The idea in simple words
  3. 3How it works
  4. 4Trade-offs
  5. 5At work
  6. 6With AI
  7. 7Check yourself
  8. 8Go deeper