KatInterview

Building a Scalable Multi-Tenant Event Reservation Platform

System DesignModel answer
HardModel answerSystem Designsystem-designconcurrencytransactions

Last updated

Design a backend system for managing event reservations across multiple venue types with pluggable business logic, concurrency safety, and transactional integrity.

You're building a reservation platform that handles bookings for various event categories—concerts, cinema screenings, sporting matches, and more. The system must support multiple operations: creating new events with capacity definitions, querying available inventory, temporarily reserving capacity with time-limited holds, completing purchases with payment idempotency, and processing refunds according to business rules.

Your design should demonstrate:

  1. Extensibility: Show how the architecture accommodates new event categories and business rules without modifying core logic. Consider using appropriate design patterns for type registration and policy composition.

  2. Concurrency safety: Explain how you prevent double-booking when thousands of users compete for limited capacity. Address both assigned seating and general admission scenarios.

  3. Data modeling: Propose a persistence schema that supports your operations efficiently. Consider partitioning strategies for scale.

  4. API contracts: Define the key endpoints (REST or gRPC), including request/response formats and error semantics.

  5. Transactional guarantees: Describe how you handle partial failures, payment provider interactions, and idempotent operations.

  6. Evolution strategy: How would you add new pricing algorithms (surge pricing, bundled discounts) or refund policies as the business grows?

Include complexity analysis for critical paths, testing approaches, and operational considerations for high-traffic scenarios.

Hints

Hint 1

Consider separating the concerns of inventory management, pricing calculation, and payment processing into distinct components with clear boundaries

Hint 2

Think about optimistic vs pessimistic concurrency control—which operations can tolerate occasional retries vs which need strict serialization?

Hint 3

Idempotency isn't just about duplicate detection; consider how you store and replay responses for retried requests