Design Case Study: A Flash-Sale Ticketing Platform
Apply all four domains to one design: gather requirements for a concert ticketing site with extreme on-sale spikes, build the architecture step by step, record the trade-offs, and practice the whiteboard design round used in Solutions Architect interviews.
The Brief
A regional promoter sells concert tickets online. Today it runs on two servers in a colocation facility, and the site crashed during the last big on-sale. They want to move to AWS before the next season.
From your requirements interview:
| Requirement | Detail |
|---|---|
| Traffic | About 200 requests/second normally; up to 50,000 requests/second for the first 10 minutes of a big on-sale |
| Correctness | A seat must never be sold twice |
| Holds | A buyer gets 5 minutes to pay for held seats; unpaid seats return to inventory |
| Payments | Through a third-party payment provider; the company wants its card-data (PCI) scope as small as possible |
| Availability | 99.9%; an outage during an on-sale is a headline |
| Recovery | RPO 1 minute; RTO 4 hours for a Regional disaster |
| Users | Mostly North America |
| Team | Six developers, no dedicated operations staff |
| Cost | Busy for a few hours a week; idle most of the time |
Before designing, notice what these requirements imply. Extreme, short spikes and a mostly idle week point to serverless. “Never sold twice” points to conditional writes or transactions. A small team points to managed services. A 4-hour RTO for a Regional disaster does not require active/active.
The Architecture
Walking through it, domain by domain
Performance (Domain 3). The static site comes from S3 through CloudFront, so 50,000 people loading the page never touch the backend. A virtual waiting room (AWS publishes a reference solution) gives each visitor a place in line and admits them to the purchase API at a rate the backend can handle. API Gateway throttling is a second limit. Lambda scales out quickly, and DynamoDB on-demand absorbs bursts of writes.
Correctness. Holding a seat is one conditional write to the seat’s item in DynamoDB: set holder = me and holdExpires = now + 5 min only if the seat is available or its hold has expired. If two buyers try at once, exactly one write succeeds. DynamoDB TTL isn’t used to release holds, because TTL deletes can lag; the expiry timestamp in the condition is what makes a seat available again.
What happens when two buyers click the same seat at the same moment:
Resilience (Domain 2). Every service here is Multi-AZ by default. Checkout is a Step Functions workflow: call the payment provider with retries, confirm the order, and on failure release the seat (a compensating step). Order events go through EventBridge to an SQS queue for email, so a slow email service never blocks a sale. For Regional disaster, DynamoDB point-in-time recovery meets the 1-minute RPO within the Region, AWS Backup copies to a second Region, and infrastructure as code rebuilds the stack there within the 4-hour RTO. That’s backup and restore, the cheapest strategy that meets the requirement.
Security (Domain 1). AWS WAF rate-limits by IP and filters known bots. Cognito handles sign-in. The browser sends card details directly to the payment provider (hosted fields or a redirect), so card data never touches the company’s systems and PCI scope stays minimal. The provider’s API key lives in Secrets Manager. Each Lambda function has its own least-privilege role.
Cost (Domain 4). Between on-sales, almost nothing runs: Lambda, API Gateway, DynamoDB on-demand, and Step Functions all charge for use. CloudFront reduces egress and origin load. No Savings Plan is needed for a workload that is idle most of the week.
Trade-Offs to Write Down
| Decision | Chosen | Alternative | Why |
|---|---|---|---|
| Seat inventory | DynamoDB conditional writes | Aurora with row locks | Handles extreme write bursts with no connection limits or capacity planning; Aurora would work at lower peaks and suits complex reporting |
| API compute | Lambda | ECS on Fargate | Scales to zero and absorbs bursts; Fargate is better for steady load or long-running connections |
| Surge control | Waiting room + throttling | Pre-scaling only | Protects the payment provider and DynamoDB from a thundering herd, and is fairer to buyers |
| DR | Backup and restore to a second Region | Warm standby | A 4-hour RTO allows it, at a fraction of the cost |
Common mistake: the team load-tests Lambda and DynamoDB at 50,000 requests per second and declares victory.
The payment provider has its own rate limits, and service quotas (Lambda concurrency, API Gateway throttles) have default values that may be too low. Find each downstream limit, set the waiting room’s admission rate below the tightest one, and request quota increases weeks before the on-sale.
The Design Round in SA Interviews
Many Solutions Architect interviews include a design round very like this lesson. A structure that works:
- 1 Clarify
5 min of questions: scale, RTO/RPO, constraints
- 2 Assume
Say your numbers out loud
- 3 Draw
Simple boxes and arrows first
- 4 Deep dive
The hardest part (here: no double sells)
- 5 Break it
What fails? What does it cost?
- 6 Summarize
Decisions and trade-offs
Interviewers care more about how you reason than about naming every service. Say why you chose each component and what you’d change if a requirement changed.
Key Takeaway
Let the requirements drive the design: spikes and idle time point to serverless, correctness points to conditional writes, a small team points to managed services, and the RTO decides the DR strategy. Protect the backend with caching, a waiting room, and throttling, isolate slow work with events and queues, and write down every trade-off.
Redesign the ticketing platform for each change below, one at a time. For each, list what changes and what stays the same.
- The promoter expands to Europe and Asia, and users must get local latency for browsing.
- The RTO for a Regional disaster drops to 5 minutes.
- Traffic becomes steady at 5,000 requests per second all day, every day.
Hints: (1) CloudFront already helps browsing; consider where the inventory lives and whether seats are Regional. (2) Warm standby with DynamoDB global tables and Route 53 failover. (3) Revisit Lambda vs Fargate and DynamoDB on-demand vs provisioned capacity with Savings Plans and reserved capacity.
1. Two buyers try to hold the same seat at the same moment. Which design guarantees only one succeeds?
A conditional write checks and updates in one atomic operation, so only one of the concurrent writes can succeed.
2. The workload is idle most of the week and spikes to 50,000 requests per second during on-sales. Which compute choice best balances cost and scaling?
Lambda scales quickly with demand and costs nothing when idle, which fits short, extreme spikes.
3. The RTO for a Regional disaster is 4 hours and the company wants to minimize cost. Which DR strategy is appropriate?
Backup and restore is the cheapest strategy and can meet an RTO of hours if restores are automated and tested.
4. How does the design keep the company's card-data (PCI) scope small?
If card data never reaches the company's systems, those systems don't store, process, or transmit it, which shrinks PCI scope.