System Design Atlas
Application system

Ticket sales with assigned seats

Reserve numbered seats, process payments and commit to exactly one ticket.

Follow the design
Ticket in front of a hall plan with a reserved seat.

Participants and responsibilities

Roles and responsibilities

Visitors select seats. Event operations maintains the offering, platform operations monitors processing, the payment service reports external results, and customer service handles unresolved compensation.

  • Visitors

    Select a numbered seat, start a hold and track their order.

  • Event operations

    Maintains events and numbered seats; reviews occupancy and sales rules.

  • Platform operations

    Monitors the ticket API, worker, inbox and outbox, and reconciles technical backlogs without inventing payment results or ticket confirmations.

  • Customer service

    Clarifies an order if a refund remains open or the payment result is unclear.

  • External payment service

    Processes payment and reliably reports its result. The ticket sales system decides whether the seat is still held.

Workflow in detail

From selected seat to valid ticket

Each step shows the action of the person, the task of the system and the achieved result.

  1. Publish event and seats

    Action
    Open the event and view available seats
    What the system does
    Shows current seat status from the authoritative inventory.

    Result: Visitors can choose a seat; selection alone does not allocate it.

  2. Select a numbered seat

    Action
    Select a numbered seat
    What the system does
    Holds the seat for five minutes or reports that it has already been allocated.

    Result: Exactly one valid hold protects the seat from further allocation.

  3. Hold the seat for five minutes

    Action
    Order starts
    What the system does
    Creates an order with pending payment. A repeated request does not restart the same payment.

    Result: The order is visible, but not yet confirmed.

  4. Start the order and payment

    Action
    Notification of payment result
    What the system does
    Checks the origin and reliably stores the payment result before the payment service receives a confirmation.

    Result: The payment result is stored reliably. The ticket is only issued after the reservation has been checked.

  5. Durably ingest the payment result

    Action
    Process confirmation
    What the system does
    Checks payment success and whether the seat is still held for this order in one transaction. It then confirms the ticket or schedules a refund.

    Result: The local decision is permanent and can be read again after a restart.

  6. Confirm ticket or clarify refund

    Action
    Complete status or compensation
    What the system does
    Shows the confirmed ticket or refund status. An unknown outcome stays visible and is assigned to customer service.

    Result: Visitors and customer service receive a traceable final status.

Workflow variations

Clear reactions to deviations

These exception paths protect exclusive seat allocation during contention, delay and retries.

Simultaneous selection

100 people try to hold the same numbered seat simultaneously.

Reaction
The system permits one hold; all other visitors learn that the seat is unavailable.
Result
This seat has at most one active hold or completed sale.

Late payment confirmation

Payment confirmation arrives after the hold expires and the seat has been reallocated.

Reaction
The system issues no ticket and schedules the refund so that retrying cannot refund twice.
Result
Successful payment is compensated and grants no entitlement to the seat.

Repeated reporting or interrupted processing

The payment service repeats the same message or the processing ends prematurely after storage.

Reaction
The system recognizes the already stored message and continues the existing order.
Result
No second ticket confirmation or refund is created.

Unknown payment result

The external confirmation is missing or cannot be clearly matched.

Reaction
The order remains visibly open; operations and customer service investigate its history.
Result
The outcome remains unknown until payment success or failure is evidenced.
Open design steps