Booking, stock and marketplace system design interview questions
Anything with something limited to sell (a seat, a delivery slot, the last one in stock) asks what happens when two people want it at the same moment.
The heart of the round is contention: holding the thing while someone pays, letting the hold go when they leave, and never selling it twice. Then the read side, because far more people look at availability than buy.
Three problems to practise
The company version will be about their own product. These are the shapes it usually takes.
-
Problem 1 · Tickets, train seats, delivery slots, appointments
Hold a seat or slot while someone pays
What makes it hard
- A hold that expires on its own, without a job that might not run
- Two people pressing Book on the last seat in the same millisecond
- Payment finishing after the hold ran out
Follow-ups to expect
- “The payment succeeds a second after the hold expired. Who gets the seat?”
- “How do you show availability without locking anything?”
-
Problem 2 · Drops, sales and one-of-a-kind items
Sell a small amount of stock to a big crowd
What makes it hard
- One very hot counter that every request wants to change
- Saying no cheaply to almost everyone
- Keeping bots from buying it all
Follow-ups to expect
- “A million people arrive in the first minute for a thousand items. What does each layer do?”
- “How do you make the queue fair?”
-
Problem 3 · Marketplaces whose stock lives in other people's systems
Show live availability across many sellers
What makes it hard
- Stock you only learn about from feeds or slow partner APIs
- Deciding how stale is acceptable on the search page, and checking again at checkout
- What to do when the seller says no after you said yes
Follow-ups to expect
- “A partner's system is down. Do you keep selling?”
- “How do you stop popular items being oversold?”
Common mistakes
- Read the stock, then write it, with nothing stopping a second request in between
- Holds that only expire if a cron job runs
- Locking rows for the whole time someone is on the payment page
- Forgetting that most traffic is people looking, not buying
Companies with this kind of round
Each page has three problems close to what that company builds.
Practise your company's round out loud
The plan and prompts are free now. The paid part is planned: five timed mocks of their design round, by voice, on a whiteboard, with an interviewer who pushes back and scores you against the bar for your level. £19 / $24 / €22 per company, once, not a subscription.
Would you pay for it? Tell us on the waitlist.
Join the waitlistOne email when it opens. We keep only your email address and your answer.
Got an interview coming up?
Add the company you are interviewing at and get their stages, in their order, in about a minute.