Design The Real-Time Bidding Engine For Live Auctions
Last updated: November 29, 2026
Quick Overview
Design the backend that accepts bids for auctions running inside live video shows, decides the winner with a server-authoritative clock, and pushes price and timer updates to every viewer within a fraction of a second.
Whatnot
November 29, 20260
0
0 solved
Design the backend that accepts bids for auctions running inside live video shows, decides the winner with a server-authoritative clock, and pushes price and timer updates to every viewer within a fraction of a second.
Auctions inside livestreams are the heart of Whatnot, and a popular show can have tens of thousands of viewers bidding on a card in the last few seconds. Interviewers probe for single-writer ordering per auction, fairness under latency, and what happens when a node dies mid-auction.
What the Interviewer Expects
- Make the server the single source of truth for time and order
- Serialize bids per auction through one owner (actor or partition)
- Separate the write path from fan-out to viewers
- Persist accepted bids durably before acknowledging
- Handle failover without losing or double-awarding a lot
- Discuss fairness for buyers with high network latency
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 hand an auction to a new owner if its node crashes in the last two seconds?
- How do you stop a bot from flooding bids on one lot?
- How would you support proxy (maximum) bids?
- How do you reconcile the video delay with the bid clock?
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: start an auction for a lot with a start price, duration, and mode (standard with extensions, or sudden death); accept bids; broadcast price, leader, and timer; close and create an order fo...
High-Level Design
Clients hold a websocket to an edge gateway tier. Bids go from gateway to an auction service where each live auction is owned by exactly one worker, chosen by consistent hashing of auction_id (o...