Skip to the guide

Design an online auction (like eBay)

IntermediateCase study12 pages

Sellers list items for a few days, buyers bid, and whoever bids most when the clock stops wins. Watchers see the price move live, and anyone outbid hears so at once. It's a sale-room auctioneer whose gavel falls at a time printed in the catalogue, however many hands are still up.

It's also asked as "design eBay", "design a bidding system" or "design a real-time auction". The closest case study is Ticket booking, where many people want one thing at one moment, but here the winner is decided by amount, not by who gets there first. Interviewers like it because a bid is a read, compare and write on one row, and the end must be exact on a clock users can't see. One item's last minute can also draw a stadium of watchers.

Below is a full mock interview following the seven steps of the framework. You're the candidate: at each Guess before you read on, stop and answer first.

Step 1 · Clarify the features and cut the scope

Minutes 0–5 · How this step works

Interviewer: Design an online auction site like eBay.

You: Do auctions end at a fixed time, or does a late bid extend them?

Interviewer: Fixed. eBay mostly uses fixed ends, though it now resets to 60 seconds on bids in the last minute in some categories and in Australia.

You: Do bidders enter the most they'd pay and let the site bid for them?

Interviewer: Yes, automatic bidding, one increment at a time.

You: Do people watching see the price move live, and do bidders hear when they're outbid?

Interviewer: Both.

You: And when it ends, the winner pays through the normal checkout?

Interviewer: Yes, just hand the winner over.

You: Then I'll cover listing, item pages, bidding with automatic bids, the live price, outbid notices and closing each auction on time. Out: search, payments, shipping and feedback. OK?

Interviewer: Fine.

Each answer shapes the design: a fixed end puts the time in every bid's condition, and automatic bidding means each bid compares against a hidden maximum. Live prices need open connections, and closing hands the winner to checkout.