Render an Interactive Venue Seat Map With Thousands of Seats
Last updated: November 29, 2026
Quick Overview
Explain how you would build the web seat map that shows every section of a venue colored by price, lets buyers zoom into rows and seats, and updates availability live, while staying smooth on a mid-range phone.
StubHub
November 29, 20260
0
0 solved
Explain how you would build the web seat map that shows every section of a venue colored by price, lets buyers zoom into rows and seats, and updates availability live, while staying smooth on a mid-range phone.
The seat map is one of StubHub's most used surfaces and has to render venues of tens of thousands of seats with prices that change while the user is looking. Frontend interviewers probe rendering choices (SVG versus canvas), interaction and hit testing, state updates and accessibility.
What the Interviewer Expects
- Chooses SVG for sections and canvas or WebGL for dense seat-level views, with reasons
- Uses level of detail: sections when zoomed out, rows and seats when zoomed in
- Implements hit testing that works for canvas
- Batches live updates and avoids re-rendering the whole map
- Keeps the map accessible with a synchronized list view and keyboard support
- Measures performance with real device profiling
Key Topics to Cover
How to Approach This
- Apply SOLID principles. Single Responsibility makes code testable, Open/Closed makes it extensible.
- Choose data structures based on access patterns, not familiarity.
- Prefer immutable data and message passing over shared mutable state for concurrency.
- Design APIs with RESTful conventions, versioning, meaningful errors, and pagination from day one.
Possible Follow-up Questions
- How would you do hit testing for 40,000 seats drawn on a canvas?
- Prices update every second over a websocket. How do you keep the frame rate stable?
- How would you make the map usable with a screen reader?
- How would you ship venue geometry so first paint is fast?
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
Show the venue with sections colored by the cheapest matching price for the buyer's quantity, pan and pinch zoom, tap a section to filter listings, zoom further to see rows or seats where the data exi...
High-Level Design
- Geometry: venue maps come as precomputed vector paths per section (and seat coordinates per row), served as a compressed static asset per venue and cached by the CDN.
- Zoomed out (around 100 to 300...