Preparing your design workspace

Loading the problem and your latest saved attempt…

Vacation Rental Search and Booking

Design a vacation-rental marketplace that evolves from a one-region startup into a multi-region search and booking platform while keeping discovery fast and inventory correct.

Problem statement

For this exercise, assume travelers search vacation rentals by destination, stay dates, guest count, price, and a bounded set of amenities. Search returns deterministic cursor-paginated listing summaries after checking date availability against an authority.

Listing and coarse-availability search projections may lag authoritative changes by up to 30 seconds; search pages must complete within 300 milliseconds p99. A traveler may create a five-minute idempotent hold within 500 milliseconds p99.

Confirmation must start before hold expiry and atomically replaces ordinary hold expiry with a two-minute confirmation lease while an idempotent external payment-authorization result is queried. Success confirms the booking; lease expiry without success triggers an idempotent authorization void and releases inventory.

No two live holds, confirmation leases, or confirmed bookings may own the same listing-night.

Begin with 100000 active listings, 100 search requests per second, and 10 booking attempts per second in one region, then evolve the design to 20000000 listings, 50000 search requests per second, and 2000 booking attempts per second across multiple regions.

Explain how an Elasticsearch-compatible discovery index and a durable NoSQL store fit without making either one the reservation authority. After a completed stay, a traveler may submit one idempotent review tied to that booking.

Review serving may be eventually consistent, but duplicate submissions and fabricated reviews without a completed stay must not become visible; suspicious reviews enter a reversible moderation state with provenance and an appeal path.

Payment processing internals, booking cancellation, refunds, messaging, review ranking, host onboarding, and dynamic pricing are outside scope.

What to build

  1. Search and page through listing summaries by destination, dates, guests, price, and bounded amenities while filtering against authoritative date availability.
  2. Ingest listing and availability changes into a searchable projection and expose freshness and indexing health.
  3. Create an idempotent five-minute hold over every listing-night in a requested stay without overselling inventory.
  4. Start confirmation before hold expiry, protect inventory with a bounded confirmation lease, converge exactly once from an idempotent payment-authorization query or void, and let a traveler read the durable outcome after retries or failures.

At scale

  • Grow from 100000 active listings, 100 search requests per second, and 10 booking attempts per second in one region to 20000000 listings, 50000 search requests per second, and 2000 booking attempts per second across multiple regions.
  • Return a search page within 300 ms p99 and decide a hold within 500 ms p99 under normal operation.
  • Allow listing and coarse-availability search projections to lag authoritative changes by at most 30 seconds while checking stay availability against an authoritative source before returning results.
  • Expire ordinary holds after five minutes; a confirmation started in time replaces that expiry with a two-minute confirmation lease, and no two live holds, confirmation leases, or confirmed bookings may own the same listing-night.