System Design Atlas

Ticket sales with assigned seats

03 / 10Worked example

Scale estimates

Which accesses share a denominator, and which need a separate test assumption?

20,000 page views in 60 seconds is equivalent to 333.33 views per second. 2,000 hold attempts in the same window correspond to 33.33 hold attempts per second. The values describe different paths. In addition, we test 100 hold attempts per second and 100 competing attempts on S-42.

Starting point The starting point is the invariants for S-42 and the hold with 300 seconds.

Assumptions for the example case

Example design for one event with 1,000 numbered seats. Each order contains exactly one seat. Hold, sale, payment and ticket are separate entities. All figures and targets are illustrative assumptions, not provider metrics. Admission scanning, resale, dynamic pricing and multi-seat orders are outside scope. Sources checked on 8 September 2026. The order model covers successful payments, including delayed success; final unpaid cancellations need their own terminal state before implementation.

Calculate the launch window and S-42 hotspot

Launch window, contention hotspot and separate test peak

Starting window20,000 Page views ÷ 60 s= 333.33 reads/s
Independently
Allocation attempts2,000 Hold-attempts ÷ 60 s= 33.33 hold attempts/s
Test separately
Hotspot100 Tests on: S-42Not more than 1 valid hold

300 s HoldExpiry is checked server-side at commit.

100/s Test peakLoad test generates contention in a targeted manner instead of extrapolating an average.

Authoritative stateA relational transaction protects allocation of the scarce seat.

Page views describe read traffic. Hold attempts create the consistency hotspot. Payment events are not inferred from page views.

Reads and holds share a time window but have separate rates; contention for one seat requires its own hotspot test.

Reproducible assumptions

  1. 01

    Average read rate

    333.33 reads/s

    20,000 ÷ 60 s

    For the designSeat-map reads can be scaled and cached separately; their results never establish hold validity.

  2. 02

    Average hold rate

    33.33 Hold attempts/s

    2,000 ÷ 60 s

    For the designTest the transactional path for scarce inventory at this average rate and at a separate peak.

  3. 03

    Test peak

    100 hold attempts/s

    Explicit test assumption

    For the designThe load test measures lock waiting times, conflicts and p95 latency under higher parallelism.

  4. 04

    Concurrency

    maximum of 1 valid hold

    100 attempts on V-17/S-42

    For the designThe hotspot tests the invariant instead of just the entire throughput.

Choose persistence from access patterns and consistency needs

Authoritative seat state

Relational transactional inventory

Check the hold and active allocation together at commit.

Trade-off
A hotspot can cause lock waits.
Reassess
When conflicts are measured, first analyse seat access and user guidance.
Seat-map reads

Read model or cache as a subordinate optimization

Many reads require no allocation decision.

Trade-off
A read model may be outdated in the short term.
Reassess
Add this only for measured read load; checkout always validates against authoritative state.

Terms in this step

Hotspot
A hotspot is a single item like S-42 that encounters unusually many competing writing attempts.

Try it yourself

Calculate 20,000 ÷ 60 and 2,000 ÷ 60. Add a contention test for one seat and name a metric for each path.

A hint for your attempt

An average does not describe how attempts are distributed across individual seats.

Compare with a possible solution
Calculation
The window yields 333.33 views/s and 33.33 hold attempts/s. Payments are not derived from this because their timing and share are separate.
Concurrency test
100 parallel attempts on S-42 may produce at most one valid hold. Measure p95 read latency on the read path and p95 latency plus lock waits on the hold path. The hotspot test counts valid holds and domain 409 conflicts separately from technical failures.

Apply to your project

Which domain resource creates a single hotspot in your load profile?

In the next step, the hold and checkout load determines the contracts for repetition and asynchronous payment.