"Design a ticketing system" has at least two correct answers, and they share almost nothing. One is a CRUD application on a single relational database that a small team could ship in a month. The other needs admission control, contention-aware inventory, idempotent payment flows, and a seat map that is allowed to be wrong in carefully chosen ways.
The prompt does not tell you which system you are building. That is the point. Getting the system design interview requirements right is not a warm-up before the real work. It is the real work, because the requirements decide which architecture is correct.
This is deceptively difficult because every requirement looks like a product question while actually being a systems question. "Can two people buy the same seat?" sounds like business policy. It is a question about invariants, coordination, and where serialization must happen.
The underlying principle comes straight from distributed systems: architecture is determined by constraints, not by features. This article covers how to extract those constraints. Specifically: how to turn a vague prompt into explicit functional scope, scale assumptions, latency targets, per-operation consistency expectations, reliability requirements, and deliberate exclusions, and how each answer eliminates or justifies a piece of the design.
Why Ambiguous Prompts Hide the Real Constraints
A system design can be treated as a function from requirements to components. An ambiguous prompt underdetermines that function: many designs satisfy "a ticketing system," and most of them are wrong for the specific system the interviewer has in mind. Every component in a correct design exists to satisfy a constraint. A component without a constraint behind it is decoration, and decoration costs operational complexity.
Interviewers omit constraints on purpose. They want to see whether a candidate notices that the problem is underspecified, or silently fills the gaps with defaults. Silent defaults are dangerous because they are invisible. A candidate who assumes "eventual consistency is fine" without saying so will build a design that collapses the moment the interviewer asks about double-selling a seat.
The most valuable requirement questions are the ones that expose failure behavior. Consider a hypothetical checkout flow: a request reaches an API service, which places a seat hold in the database, calls an external payment provider synchronously, and then confirms the sale. Now suppose the payment provider does not fail. It just gets slow, with p99 latency drifting from 300 ms to 8 seconds.
The causal chain looks like this:
slow payment provider
→ request threads and DB connections held during the call
→ connection pool exhaustion
→ new checkout requests queue behind the pool
→ end-to-end latency exceeds client timeouts
→ clients retry, often with a new request
→ duplicate charge attempts against the slow provider
→ more load on the dependency that is already degraded
→ seat holds expire mid-payment
→ a seat is released and resold while the original charge succeeds
The final line is an invariant violation: one seat, two paying customers. Nothing crashed, and no component was "down." The failure emerged from timing, retries, and an assumption that the payment step would finish within the hold window.
Each step in that chain corresponds to a requirement that was never stated. How long does a hold last? Is payment synchronous? Is a duplicate charge acceptable if it is refunded later? What latency should checkout tolerate before failing? The questions sound like product details. The answers determine whether the system preserves its most important invariant under partial failure.
So the goal of requirements gathering is not to collect a feature list. It is to discover the assumptions the system will make, so that each one can be stated, challenged, and designed around.
Converting System Design Interview Requirements Into Engineering Constraints
A useful system design interview framework sorts requirements into categories, but the categories only matter if each one translates into a concrete engineering consequence. The sections below treat each category as a source of constraints rather than a checklist item.
Functional Scope: Name the State and the Invariants
Mental model: functional requirements define what state exists and what must always be true about it.
Most candidates list features: browse events, view seat map, hold seat, purchase, view tickets. That is a start, but a feature list hides the important part. Each feature implies state (events, seats, holds, orders, payments) and each piece of state carries invariants:
- A seat is sold at most once.
- A hold expires if not converted to a sale.
- A completed payment corresponds to exactly one order.
Invariants matter because they decide where coordination must happen. "A seat is sold at most once" means every purchase of a given seat must serialize through a single authority, whether that is a row lock, a conditional write, or a consensus-backed record. Browsing event listings has no such invariant, so it can be served from replicas or caches with no coordination at all.
The tradeoff is that adding scope multiplies invariants. "Allow ticket transfers between users" sounds small, but it introduces a new ownership invariant and a new race between transfer and resale. Every feature should be evaluated by the coordination it adds, not just by the screens it adds.
Scale Assumptions: Back-of-the-Envelope Estimation as a Design Filter
Mental model: scale numbers are inputs to capacity math, and capacity math eliminates designs.
Back-of-the-envelope estimation is often performed as ritual: compute daily active users, divide by 86,400, announce a QPS, move on. The useful version asks which resource the numbers saturate first.
Take an illustrative on-sale event. Assume 2 million users arrive in the first 10 minutes for a venue with 50,000 seats:
Arrivals: 2,000,000 users / 600 s ≈ 3,300 new users/sec
Seat map: 2,000,000 users refreshing every 5 s ≈ 400,000 reads/sec (peak, if all active)
Sales: 50,000 seats / 600 s ≈ 85 confirmed writes/sec
Hold attempts: far higher than sales, concentrated on the best few hundred seats
These numbers are assumptions, not benchmarks, but they reveal the shape of the problem. Write volume is tiny: the inventory itself bounds it. The read volume is large but cacheable. The real bottleneck is contention: thousands of concurrent attempts against a few hundred hot rows.
That conclusion changes the architecture. Adding read replicas does nothing for contended writes. Sharding by event does not help either, because a single event is the hot partition. The scale requirement points toward admission control (limiting how many users can attempt holds at once) rather than toward more database nodes.
The tradeoff: admission control converts overload into waiting. Users queue instead of failing, which requires a fair queueing mechanism and honest progress feedback. The complexity moves to the edge of the system instead of disappearing.
Performance and Consistency Targets Belong to Operations, Not Systems
Mental model: "the system should be fast and consistent" is not a requirement. Each operation gets its own latency target and its own consistency model.
Consistency models in system design are frequently discussed as a global choice: "we'll use eventual consistency." Real systems mix models per operation:
| Operation | Latency target (illustrative) | Consistency needed | Why |
|---|---|---|---|
| Browse events | p99 < 200 ms | Eventual, staleness of minutes is fine | No invariant; stale listing is harmless |
| View seat map | p99 < 300 ms | Bounded staleness, a few seconds | Stale map causes failed hold attempts, not incorrect sales |
| Place hold | p99 < 500 ms | Linearizable per seat | Enforces "sold at most once" |
| Confirm purchase | p99 < 3 s | Linearizable per order, idempotent | Must not double-charge or double-sell |
| View my tickets | p99 < 500 ms | Read-your-writes | A buyer who cannot see their ticket will retry or call support |
Notice that the seat map is allowed to be wrong. That is a deliberate requirement, and stating it unlocks the cache that absorbs 400,000 reads per second. Correctness is protected at the hold step, where the authoritative check happens. A stale map produces a failed hold and a retry, which is an acceptable user experience; it never produces a double sale.
Latency targets should also be percentiles, not averages. Averages hide the tail, and the tail is where timeouts, retries, and the cascading chain from earlier begin. A p99 target also forces the next question: what happens when a request exceeds it? That answer defines timeout and retry policy, which in turn defines load behavior under degradation.
Reliability Requirements and Intentional Exclusions
Mental model: reliability requirements define which failures the system must survive and what it is allowed to lose.
"Highly available" is not a requirement. Useful latency and availability SLOs are specific: confirmed purchases must never be lost (durability, an RPO of zero for orders); the purchase path should tolerate the loss of a single availability zone; browsing may degrade during an outage while purchasing continues. Each statement maps to a mechanism. Zero data loss for orders implies synchronous replication before acknowledging a sale. Zone tolerance implies replicas across failure domains. Graceful degradation implies the browse path cannot share a failure domain (or a connection pool) with the purchase path.
The tradeoff is direct: synchronous replication across zones adds write latency to every confirmed sale. That cost is acceptable at 85 writes per second. It would be a different conversation for a system writing millions of events per second.
Exclusions are equally important. Stating "no reserved-seat transfers, no dynamic pricing, no resale marketplace, single region" is not laziness. Each exclusion removes invariants, failure modes, and coordination points from the design. Exclusions also make the evaluation fair: the interviewer can judge the design against the stated scope rather than an imagined one. An exclusion should be stated with its consequence, such as "single region means a regional outage stops sales; that is acceptable for this scope."
Enjoying this so far?
Join thousands of engineers receiving practical engineering, Cloud, Distributed Systems, Infrastructure and AI engineering insights.
No spam. Unsubscribe anytime.
From Requirements to Architecture: A Ticketing System Model
Once requirements are explicit, they can be written as a short ledger. This is the artifact worth producing early in any design discussion:
SCOPE browse, seat map, hold (8 min), purchase, my tickets
INVARIANTS seat sold at most once; payment maps to exactly one order
SCALE 2M users in 10 min on-sale; 50k seats; reads >> writes
LATENCY hold p99 < 500 ms; purchase p99 < 3 s; browse p99 < 200 ms
CONSISTENCY hold/purchase linearizable per seat; seat map stale ≤ 5 s
RELIABILITY zero loss of confirmed orders; survive one zone loss
EXCLUDED transfers, resale, dynamic pricing, multi-region
The architecture follows from that ledger rather than from a library of familiar components:
Client
|
v
Admission Control (waiting room) <- bounds concurrent purchasers
|
v
API Service (stateless)
| \
| reads \ writes (hold, purchase)
v v
Seat Map Cache Inventory DB (primary, sync replica in 2nd zone)
^ |
| refresh ≤ 5 s | outbox rows
| v
+--------- Event Stream ---> Workers (email, receipts, analytics)
Payment Provider <--- API Service (idempotency key per order)
State ownership. The inventory database is the sole authority for seat state. The cache owns nothing; it holds a derived, explicitly stale copy. Workers own nothing either; they react to committed facts.
Consistency boundary. The invariant lives in a single conditional write, which makes it a property of the storage layer instead of a property of application code:
UPDATE seats
SET status = 'held',
hold_id = $3,
hold_expires_at = now() + interval '8 minutes'
WHERE event_id = $1
AND seat_id = $2
AND (status = 'available'
OR (status = 'held' AND hold_expires_at < now()))
RETURNING seat_id;
Zero rows returned means the seat is taken. No read-then-write race exists, because the check and the update are one atomic operation on one row. Confirmation is a second conditional write keyed on hold_id, so a sale can only complete for the hold that owns the seat.
Failure boundaries. Browse traffic hits the cache and never competes for inventory connections. If the cache fails, the seat map degrades; holds still work. If the payment provider slows, the hold window and a bounded payment timeout cap how long a seat stays locked.
Scaling boundary. API servers and cache nodes scale horizontally. The inventory database does not need to, because admission control keeps concurrent writers within what a single primary handles. This is a deliberate choice: the serialized bottleneck is protected rather than distributed.
Recovery. Notifications flow through a transactional outbox, so a committed sale always produces an event even if the stream is briefly unavailable. Workers must be idempotent, because outbox relays deliver at least once.
Tradeoffs: How Each Answer Changes the Design
The decision framework for requirements gathering is simple to state: ask the questions whose answers change the architecture; state assumptions for questions whose answers only change tuning. Asking about hold duration is tuning. Asking whether double-selling is ever acceptable is architecture.
| Question | Answer A | Design consequence | Answer B | Design consequence |
|---|---|---|---|---|
| Can a seat ever be oversold? | Never | Per-seat serialization; conditional writes or locks | Rarely, with compensation | Optimistic sales, reconciliation job, refunds |
| Is traffic spiky or steady? | Spiky on-sales | Admission control, pre-warmed caches | Steady | Simple autoscaling suffices |
| Must buyers see seats in real time? | Yes | Push updates, contention on fan-out | Seconds of staleness OK | Cached map, cheap reads |
| Is payment synchronous? | Yes | Tight timeouts, hold must outlive payment | Async confirmation | Pending-order state machine, user notification |
| Single region or multi-region? | Single | One authority, simple consistency | Multi-region active | Per-event home region or cross-region consensus |
Each option has a cost. Strict per-seat serialization is simple to reason about but caps write throughput per hot seat, which is why it pairs with admission control. Optimistic overselling increases throughput and availability, but it moves complexity into reconciliation, customer communication, and refund handling. That complexity is moved, not eliminated.
Asynchronous payment confirmation decouples checkout latency from the provider's latency, but it introduces a state machine (pending, confirmed, failed, expired) and the question of what the user sees in the meantime. Multi-region active writes improve availability for a regional outage but force a choice: either route each event to a home region (simple, but that region is a single point of failure for the event) or pay cross-region consensus latency on every hold.
There is also a tradeoff in the requirements process itself. Too few questions produce a design built on invisible assumptions. Too many questions spend the session on product discovery while no design gets built. A practical approach: ask three to five architecture-shaping questions, state the remaining assumptions out loud, and invite correction.
Failure Modes and What Happens at Scale
Requirements gathering is ultimately a failure analysis performed before the design exists. Reasoning through scale makes that concrete.
At roughly 10 requests per second (a small regional venue), a single database with row locks handles everything. Admission control, outboxes, and caches would be premature complexity. The correct design here is boring, and saying so demonstrates judgment.
At roughly 1,000 requests per second, reads begin to compete with writes for connections. A read cache and connection pool separation between browse and purchase paths become justified. Duplicate submissions from impatient users become common enough that idempotency keys stop being optional.
At roughly 100,000 requests per second during an on-sale, the dominant failure is contention and retry amplification. Without admission control, failed holds trigger client retries, retries multiply load on hot rows, lock wait times grow, timeouts fire, and the cascade from the opening example begins. The fix is not more capacity; it is bounding concurrency and making retries cheap and safe.
Across all scales, specific failure types map back to specific requirements:
- Duplicate messages and retries violate "one payment, one order" unless idempotency is a stated requirement.
- Stale data in the seat map is harmless only because the requirement explicitly bounded it and placed the authority elsewhere.
- Partial failure of the payment provider is survivable only if the hold duration exceeds the payment timeout plus a margin.
- Lost events to the notification pipeline are prevented only if the durability requirement extends from orders to their side effects.
A requirement that was never stated becomes a failure mode nobody designed for.
Engineering Principles for System Design Interview Requirements
1. Every component should trace back to a constraint. If a box in the diagram cannot be justified by a requirement, it is either missing a requirement or should not exist.
2. Invariants decide where coordination lives. Identify what must always be true, and the serialization points of the system follow directly.
3. Consistency is a per-operation decision. Choosing where staleness is acceptable is what makes the rest of the system cheap.
4. Capacity math is for finding the first saturated resource. The interesting output of estimation is not a QPS number. It is the bottleneck, which is often contention rather than volume.
5. An unstated assumption is a deferred failure. Silent defaults turn into invariant violations under partial failure, retries, or load.
6. Exclusions are design decisions. Removing scope removes invariants, coordination, and failure modes, and stating the cost of each exclusion keeps the design honest.
7. Simplicity that satisfies the requirements beats sophistication that exceeds them. A single database is the correct answer when the numbers say it is.
Final Thoughts
The deeper lesson is that functional and non-functional requirements are not two lists to fill in before design begins. They are the design, expressed in a form that has not yet chosen its components. Once the invariants, scale, per-operation consistency, latency budgets, failure tolerance, and exclusions are explicit, most architectural decisions become forced moves rather than preferences.
That is why strong system design interview requirements gathering reads less like an interview ritual and more like engineering. It shows that the candidate thinks about where state lives, which operations must coordinate, which resource saturates first, and how the system behaves when a dependency slows down instead of failing cleanly.
The same discipline applies well outside interviews. Production systems rarely fail because someone chose the wrong database. They fail because an assumption about timing, ordering, load, or consistency was never made explicit, and then stopped being true. These are the kinds of engineering problems that sit at the center of modern software systems: understanding the constraints first, and letting the architecture follow from them.
Key Takeaways
- Requirements gathering is constraint discovery: each answer should eliminate candidate designs or justify a specific component, otherwise the question did not need to be asked.
- Functional scope is best expressed as state plus invariants, because invariants such as "a seat is sold at most once" determine exactly where the system must serialize.
- Back-of-the-envelope estimation is valuable when it identifies the first saturated resource; in inventory systems that resource is often hot-row contention, which replicas and sharding do not fix.
- Consistency and latency targets should be assigned per operation, so stale-tolerant reads can be cached cheaply while invariant-bearing writes go to a single authority.
- Reliability requirements must name the failure being survived and the data that cannot be lost, since "zero loss of confirmed orders" and "survive one zone" each map to concrete replication decisions with latency costs.
- Retries and duplicate submissions are a requirements question, not an implementation detail: without stated idempotency, a slow dependency turns into double charges and oversold inventory.
- Explicit exclusions shrink the invariant and failure surface of a design, and stating their consequences makes the scope defensible rather than incomplete.
Get insights like this in your inbox
Join thousands of engineers receiving practical engineering, Cloud, Distributed Systems, Infrastructure and AI engineering insights.
No spam. Unsubscribe anytime.