System Design Atlas

Ticket sales with assigned seats

08 / 10Worked example

Bottlenecks and trade-offs

Which measurement distinguishes normal contention from an architectural bottleneck?

The first design has deliberately few building blocks. If the start window test shows problems, the symptom must be assigned to a path. An increased 409 rate on S-42 can be normal contention; old payment_pending orders, on the other hand, show a backlog or unexplained external feedback.

Starting point The starting point is the load values and the critical process with inbox and outbox.

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.

From ticket symptom to targeted action

From Symptom to Limited Intervention

SymptomS-42 Conflicts Rising

409 rate and hold latency increase in the launch window.

Measure
MeasurementSeparating the path

Measure reads, hold transactions, inbox age and refunds separately.

Limitations
CauseDetermining hotspot

Many attempts for one seat, or a payment-service backlog.

Compare
ActionTargeted Extension

Relieve the burden of reading paths, scale workers or involve customer service.

Slow seat selection and a payment backlog are different symptoms. Measurements and causes determine whether to cache reads, increase worker capacity or investigate the domain outcome.

Diagnosis separates symptom, measurement, cause and action. Each extension follows evidence of a bottleneck.

Trade-offs of the first expansion steps

Seat-map reads

Read model or cache only at measured reading load

333.33 reads/s concern the read path, not authoritative seat allocation.

Trade-off
Availability can be displayed outdated for a short time.
Reassess
Review when p95 read latency or storage load exceeds its target.
Hold Hotspot

Preserve the transaction boundary

S-42 needs a hard exclusivity rule.

Trade-off
Conflicts and waiting time are visible under real contention.
Reassess
Investigate excessive p95 hold latency or lock waits.
Refunds

Outbox Worker with Retry and Clarification

An external outage must not lose the local decision.

Trade-off
compensation_pending remains visible to visitors and customer service.
Reassess
With increasing age or volume of open compensation.

Metrics and expected conclusion

MetricsObservationNext question
p95 seat-map read latencyReading becomes slow under starting load.Check read model, cache or query profile.
Lock waiting time at H-17Contention for individual seats delays commit.Check hotspot, index and conflict behavior.
409 rate per seatMany visitors want the same seat.Check user guidance and clear conflict feedback.
Age of open compensationRefunds remain compensation_pending.Reconcile the payment service, outbox and customer service workflow.

p95 seat-map read latency

Observation
Reading becomes slow under starting load.
Next question
Check read model, cache or query profile.

Lock waiting time at H-17

Observation
Contention for individual seats delays commit.
Next question
Check hotspot, index and conflict behavior.

409 rate per seat

Observation
Many visitors want the same seat.
Next question
Check user guidance and clear conflict feedback.

Age of open compensation

Observation
Refunds remain compensation_pending.
Next question
Reconcile the payment service, outbox and customer service workflow.

Terms in this step

Trade-off
A trade-off records the benefit of a choice, its accepted cost and the trigger for reconsideration.

Try it yourself

For a slow seat map, a high 409 rate and old compensation_pending orders, identify a measurement, possible cause and action.

A hint for your attempt

A 409 can be the correct domain outcome for a popular seat; users still need clear next steps, and the transaction must remain reliable.

Compare with a possible solution
Slow seat map
Measure p95 read latency and query profiles. Possible causes are expensive queries or a saturated read path. First improve queries and indexes; add a read model or cache when measurements justify it. Displayed availability may briefly lag.
High 409 rate
Measure conflicts per seat, lock waits and hold latency. Real contention for S-42 may explain the conflicts. Provide clear feedback and let users select another seat while preserving exclusivity. Long lock waits also require transaction analysis.
Old compensation_pending orders
Measure the oldest unresolved compensation, retry count and payment state. Worker backlog or an external outage may be responsible. Check worker capacity for a backlog; retry external requests with stable keys and escalate unresolved cases to customer service.

Apply to your project

Which metric reveals a technical problem, and which shows a domain backlog?

Next, turn these metrics into an initial operations and security plan.