← Questions

Design an online auction service

0
MetaSystem designLast asked Oct 2025

A system design interview question asked in Meta's technical phone screen, last asked Oct 2025. It tests auctions, consistency and real-time.

Design an auction feature inside a large social app. A seller lists an item with a starting price and an end time, buyers place bids, and everyone watching the item sees the highest bid update live. When the auction ends, the highest valid bid wins.

Requirements

  • Functional: create an auction listing (item, photos, starting price, end time).
  • Functional: place a bid. It is accepted only if it beats the current highest bid by the minimum increment and arrives before the end time.
  • Functional: watchers see the current highest bid and the bid count in near real time.
  • Functional: close the auction at its end time, pick the winner, and notify the seller and the bidders.
  • Non-functional: millions of auctions, a few very hot ones with thousands of bids a minute, and bid acceptance that is correct under concurrency (no two winners, no lost bids).
  • Non-functional: low latency for placing a bid and for live updates. High availability for browsing.

Clarifying questions

  • English auction (ascending bids), or other formats such as sealed bid?
  • Do we support proxy bidding (a maximum the system bids up to automatically)?
  • Is payment part of the scope, or only declaring the winner?
  • Is the end time hard, or does a late bid extend it (anti-sniping)?
  • How fresh must the price shown to watchers be?

What a strong answer covers

  • Data model: auction(id, seller_id, item, start_price, increment, ends_at, status, current_bid_id) and bid(id, auction_id, bidder_id, amount, created_at), append-only.
  • The hard part, accepting bids on a hot auction: a conditional write (compare-and-set on the current highest bid) or one owner per auction (a partition or single-writer actor), with idempotency keys on retries.
  • Ordering and fairness: the server timestamp decides, and bids that arrive after ends_at are rejected.
  • Live updates through a pub/sub fan-out to WebSocket or long-poll gateways, with updates coalesced for very hot auctions.
  • Closing on time: a durable timer or a delayed queue that closes each auction exactly once, then winner selection and notifications.
  • Search and browse served from read replicas or a search index, kept apart from the bid path.

Follow-ups

  • Add proxy bidding.
  • Anti-sniping: extend the end time when a bid lands in the last minute.
  • One auction goes viral with 100,000 watchers. What breaks first?
  • Detect shill bidding by the seller's friends.

Where it's asked

  • Meta · Technical phone screen · Last asked Oct 202545 min · Two coding problems in CoderPad, about 20 minutes each · Usually no AI; some newer screens are AI-assisted

What it tests

auctions · consistency · real-time

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing