Design a Virtual Waiting Room for High-Demand Ticket Drops
Last updated: November 29, 2026
Quick Overview
Design the system that absorbs a sudden surge of buyers when a sold-out tour or a championship game hits the marketplace, admits them fairly into the listing and checkout flow at a rate the backend can handle, and blocks bots.
StubHub
November 29, 20260
0
0 solved
Design the system that absorbs a sudden surge of buyers when a sold-out tour or a championship game hits the marketplace, admits them fairly into the listing and checkout flow at a rate the backend can handle, and blocks bots.
Traffic on StubHub is extremely spiky: a playoff clinch or a tour announcement can multiply load within minutes, and the inventory is small relative to demand. Interviewers look for admission control that protects checkout, a fair ordering story, and resistance to bots that open thousands of sessions.
What the Interviewer Expects
- Separates the queue tier from the core marketplace so the queue can scale independently
- Defines fairness (random position at open, FIFO after) and justifies it
- Uses signed admission tokens validated at the edge
- Derives the admission rate from checkout capacity and observed conversion
- Handles bots with rate limits, device signals and per-account caps
- Explains what users see and how position updates are pushed
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you pick the admission rate, and how does it adapt while the drop is live?
- What happens if the queue service itself goes down?
- How would you stop one person from holding many places with many accounts?
- How do you avoid admitting thousands of users when inventory has already sold out?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: put users for a hot event into a queue, show position and wait time, admit them into browse and checkout, and expire admissions that are not used. Non-functional: survive 50 to 100 times n...
High-Level Design
- A per-event 'protected' flag lives in config. When set, the CDN edge routes
/event/{id}and checkout paths to a lightweight queue page unless the request carries a valid admission token. - Queue...