Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Rental Car Reservation System

Design a reservation platform that protects limited vehicle inventory under concurrent demand and operational shortages.

Problem statement

For this exercise, assume a rental-car service where a customer searches one pickup location for a vehicle class and time window, places a five-minute inventory hold, then confirms or cancels a reservation.

A confirmed reservation guarantees capacity in the requested class, not a specific vehicle identification number; the location assigns a physical vehicle later. Inventory is planned in hourly buckets, and one reservation consumes one unit from every bucket that overlaps its rental window.

The fleet has about 500,000 rentable vehicles across 5,000 locations, with peaks of 5,000 availability searches and 500 hold or confirmation attempts per second.

Availability search may be briefly stale, but concurrent requests must never confirm more reservations than the sellable capacity of any location, class, and time bucket. Retried customer requests must not create duplicate holds or reservations.

A location may reduce sellable capacity when vehicles become unavailable; if that creates a shortage against existing confirmations, preserve those reservations and create an operator-visible shortage case for re-accommodation rather than silently cancelling customers.

Keep the booking path available through a single-zone failure, but fail closed on new holds or confirmations when authoritative inventory cannot be reached. Exclude payment, dynamic pricing, loyalty, pickup and return operations, and roadside assistance.

What to build

  1. A customer can search vehicle-class availability for one pickup location and rental time window.
  2. A customer can place one expiring hold that reserves capacity across every inventory bucket in the requested window.
  3. A customer can idempotently confirm or cancel a reservation and retrieve its current outcome.
  4. An operator can reduce sellable capacity and inspect shortage cases without silently invalidating confirmed reservations.

At scalePractice assumption

  • Approximately 500,000 rentable vehicles are distributed across 5,000 pickup locations, with inventory tracked by vehicle class and hourly time bucket.
  • Peak load is 5,000 availability searches and 500 hold or confirmation attempts per second across the fleet.
  • Search results may be briefly stale, but confirmed plus unexpired-held inventory must never exceed sellable capacity for any location, class, and bucket at commit time.
  • A hold expires after five minutes; the booking path survives a single-zone failure and rejects new inventory commitments when its authoritative shard lacks quorum.