Design a waitlist for in-demand listings
I was asked this
No reports yet. Sign in to say where you were asked it.
A system design interview question asked in Airbnb's system design round, last asked Jul 2025. It tests apis, queues and notifications.
Design a waitlist for high-demand listings. When the dates a guest wants are taken, they can join a waitlist for that listing and those dates. When the dates open up, for example after a cancellation, the system decides who gets the chance to book, holds the dates for them for a while, and notifies them; if they don't respond, the offer moves on.
Requirements
- Functional: join and leave a waitlist per listing and date range; see your position or status.
- Functional: detect freed inventory, pick the next eligible guest (first come, first served, possibly with priority tiers), place a time-limited hold, notify them by push, email or SMS according to their preferences, and move on when the hold expires.
- Functional: limits on waitlist size, deduplication of joins, and no double booking.
- Non-functional: spikes on popular listings, at-least-once notification without duplicate offers, observability; state your scale assumptions.
Clarifying questions
- Is the waitlist per exact date range, or should a guest match any freed range that covers their dates?
- Does the first guest get an exclusive hold, or are several notified and the first to book wins?
- How long is a hold, and what happens to partial overlaps (only some of the nights free up)?
- Are there priority tiers, such as loyal guests?
- How many waitlisted guests per hot listing, and how many listings?
What a strong answer covers
- APIs:
POST /listings/{id}/waitlist {check_in, check_out, guests}with an idempotency key,DELETEto leave,GETfor status; the request and response shapes. - Data model: waitlist entries keyed by listing and date range with a join time and tier, holds with an expiry, and the booking calendar as the source of truth.
- Triggering: availability-change events from the booking system feed a matcher that finds waitlisted entries covering the freed nights.
- Fairness and concurrency: a per-listing ordered queue, one active hold at a time enforced by a conditional write or row lock, and a booking that checks the hold inside the same transaction that reserves the nights.
- Notifications through a queue with retries, deduplicated by offer id, honouring user preferences; hold expiry by a scheduler that moves to the next guest.
- Scale: sharding by listing, rate limits on joins, backpressure on the notifier; at-least-once delivery with idempotent handlers instead of exactly-once claims.
- Metrics: offers sent, conversion, time to rebook, expired holds; end-to-end tests with simulated cancellations.
Follow-ups
- Two cancellations for the same nights arrive at the same moment. What happens?
- A guest gets the offer but the push notification is delayed past the hold time. What then?
- The host changes the price while a hold is active. Who sees which price?
- How do you stop bots from flooding the waitlist?
Where it's asked
- Airbnb · System design · Last asked Jul 202560 min · Design discussion
What it tests
apis · queues · notifications · fairness
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
