0%
Product Architecture Interviews: User Flows, APIs, Data Models, Feeds, Real Time and Privacy
Walkthrough: Event Ticketing Under a Spike
This walkthrough designs an event ticketing product: fans browse events, pick seats on a seat map, hold them for a few minutes, pay, and receive tickets on their phone that get them through the gate. It is a strong product architecture prompt because a single popular on sale compresses a year of demand into a few minutes, inventory is finite and specific (seat 12 in row F is not interchangeable with seat 13), fairness is visible to users and to the press, and bots compete with real fans. We will use the course's six steps: requirements and flows, data model, APIs, architecture, product deep dives, and trade offs with a wrap up.
The aim is a strong interview answer, not a description of any real ticketing company. Interviewers commonly look for a clear inventory model with holds, a plan for the spike that protects both the system and the fans' experience, correct handling of payment and issuance, and a sensible approach to tickets after purchase: transfers, resale and entry.
Restating the prompt
Restate: organisers create events at venues with seat maps or general admission areas and price levels; fans find events, choose seats or a quantity, hold them while they pay, and receive mobile tickets; tickets can be transferred to friends and, within the organiser's rules, resold; at the venue, tickets are scanned at the gate. Then scope. Do we handle reserved seating, general admission or both? Is there a resale marketplace, or only transfers? Do we run the payment processing or integrate a provider? Is there a presale with codes? For this walkthrough: both seating types, transfers plus resale within organiser rules, an external payment provider, and presales with codes as a small extension.
Core user stories
- As a fan, I open an event page and see the date, venue, price levels and availability.
- As a fan, I open the seat map, pick specific seats or ask for the best available two seats in a price level, and they are held for me for a few minutes.
- As a fan on a hot on sale, I wait in a queue that tells me honestly where I stand, and when it is my turn I can shop.
- As a fan, I pay and receive tickets in the app within seconds, and I never pay for seats I do not get.
- As a ticket holder, I transfer a ticket to a friend, or list it for resale if the organiser allows.
- As a fan at the gate, I show my phone and get in quickly, even if the venue's mobile signal is poor.
- As an organiser, I set up the event, price levels and rules, and see sales in near real time.
Park: dynamic pricing, merchandise bundles, seat upgrades, accessibility seating workflows beyond a flag, and refunds for cancelled events. Mention that each would slot into the design later.
Personas and what each fears
Fans fear unfairness and losing seats mid checkout. They want to know their place in line, and they hate paying and then being told the seats are gone. Organisers fear empty seats, bots buying everything for resale at a markup, and a crashed on sale making headlines. Venue staff fear long lines at the gate and fake tickets. The platform fears the spike itself: a sudden, enormous burst of traffic that can take down shared services. Naming fears rather than wishes helps here, because the design is mostly about preventing bad outcomes.
Screens that drive the design
Sketch three screens briefly. The event page: static details, price levels, an availability indicator and a buy button that leads into the queue when an on sale is busy. The seat map: sections and rows, seats coloured by state and price, a selection tray with a countdown once seats are held. The ticket wallet: tickets with a rotating code, a transfer button and event details. Each screen implies a read with very different freshness needs. The event page can be cached for many seconds. The seat map needs near live availability for the section being viewed. The wallet must work offline at the venue.
Edge cases worth naming
- Two fans select the same seat at the same moment.
- A fan holds seats and closes the app; the seats must return to sale.
- Payment succeeds but the response never reaches the client, and the fan taps pay again.
- Payment succeeds but the hold expired a moment earlier.
- A fan is in the queue on a phone and a laptop at once, doubling their chances.
- An organiser releases extra seats in the middle of the on sale.
- A ticket is transferred and the old holder still has a screenshot of the code.
- The venue loses internet during entry.
Non functional needs as product promises
Correctness: a seat is sold at most once; a fan is never charged without receiving tickets, or is refunded automatically if that happens. Fairness: on a busy on sale, access is granted in an order the fan can understand, such as arrival time with a randomised start for people who arrived before the sale opened, and one place per person. Responsiveness: once admitted, selecting and holding seats takes under a second; payment takes a few seconds. Honesty: the queue position and estimated wait are real numbers, and the seat map does not show seats as available when they are held. Resilience: the rest of the site, such as browsing other events, keeps working during a huge on sale. Entry: scanning a ticket takes well under a second at the gate, with or without connectivity.
Rough numbers
A typical event is calm: a few thousand seats selling over weeks. The hard case is a stadium tour on sale: sixty thousand seats per show, perhaps ten shows, and two million fans arriving within the first minutes. If every fan hit the seat map at once, the inventory service would see millions of reads and hundreds of thousands of hold attempts per minute for a few hundred thousand seats in total. Most fans will not get tickets, which is a product fact to say aloud: the design must disappoint most people gracefully and quickly rather than letting them spend an hour fighting errors.
The arithmetic that matters: if checkout can complete about three thousand orders per minute comfortably and an average order has three seats, that is nine thousand seats a minute, so the six hundred thousand seats across ten shows take a little over an hour to sell at that rate, or well under an hour if you size checkout higher. The waiting room admits people at the rate checkout can serve. That single number, the admission rate, connects the waiting room to every downstream service.
Scoping questions worth having ready
A few questions change the design enough to ask early. How big are the biggest on sales, and how often do they happen? A platform that runs one stadium tour a year can rent capacity for the day; one that runs several a week needs the protected zone as a permanent feature. Are tickets mobile only, or can fans print them? Printable tickets rule out rotating codes and push you towards static barcodes with stronger gate checks. Does the organiser want transfers and resale on the platform, or forbidden entirely? That decides whether the ticket ledger needs listing and resale states. Are there per account limits, such as four tickets per fan? Limits shape the hold endpoint and the bot defences. You will not need all of these, but each one you ask with a reason attached is evidence of product sense.
What not to design
Say what you will treat as a box. Card processing belongs to the payment provider, push and email delivery belong to the notification service, and seat map drawing tools for venues are an internal admin product. That leaves your time for inventory, holds, the spike, checkout ordering and tickets after purchase, which is where this prompt is different from any other.
Check in
Summarise: seven flows, holds as the core inventory concept, the spike as the defining challenge, fairness and honesty as user promises, and a mobile wallet that works offline. Ask whether the interviewer wants to focus on the inventory and hold mechanics, the spike and waiting room, or post purchase tickets. Most choose the first two; leave room for the third if they do not.
When demand is ten times supply, the product's job is to disappoint people fairly, honestly and quickly. Saying this out loud reframes the spike from a scaling puzzle into a product problem the interviewer can score.
That was the last lesson. What next?
Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.
Build my course