KatInterview

Design a High-Concurrency Reservation Platform

System DesignModel answer
MediumModel answerSystem Designdistributed-systemsconcurrencycaching

Last updated

Build a scalable property reservation system that handles millions of searches and prevents double-booking through strong consistency guarantees.

You're tasked with architecting a reservation platform for short-term property rentals. The system must allow guests to discover available properties and complete reservations while maintaining data integrity under heavy concurrent load.

Core Requirements

What users need to do:

  1. Search for properties matching location criteria and specific date ranges
  2. Reserve a property for chosen dates
  3. System guarantees: no property can be reserved twice for overlapping dates

Performance and scale expectations:

  1. Search operations must remain fast and available even under peak load
  2. Reservation operations require absolute correctness—no race conditions allowed
  3. Response times must stay low for both discovery and transaction flows
  4. System must accommodate millions of properties and handle thousands of simultaneous requests

What You Should Deliver

  • Core API design for discovery and reservation flows
  • Data storage strategy—justify your choice between relational and non-relational approaches, considering both query patterns and transactional needs
  • Detailed concurrency mechanism to eliminate double-booking scenarios
  • Overall system architecture covering caching approaches and horizontal scaling techniques

Scale Parameters

  • Property inventory: 1 million active listings
  • Daily search volume: 100 million queries
  • Users span multiple continents and expect consistent performance

Hints

Hint 1

Consider the read-to-write ratio—how does that shape your architecture?

Hint 2

Think about what level of consistency each operation truly needs

Hint 3

A calendar made of individual records can simplify locking logic