Case study
Roarline: Tickets for Live Events
Roarline sells tickets for concerts, festivals and theatre. Most days it is a calm web shop. Then a big act announces a tour, the sale opens at 10:00, and fifty thousand fans hit the "Buy" button within the same minute.
Roarline is fictional. It is a made-up company that serves as the running example for the documentation and design topics on this site: ADRs, arc42, the C4 model, quality scenarios and domain-driven design. Any similarity to a real company is accidental.
The Business in Numbers
What Makes It Hard
- Sale openings: traffic jumps by a factor of 200 within seconds, and then drops back again an hour later
- Seat inventory: a seat may be held, sold or released, but it must never be sold twice
- Money: fans must be charged exactly once, and refunds must work when an event is cancelled
- The door: tickets are scanned at the venue entrance, often in a basement with terrible mobile reception
- Bots and scalpers: automated buyers try to grab the best seats in the first second
Quality Goals
The three goals that shape every architectural decision, in priority order:
| # | Quality goal | What it means for Roarline |
|---|---|---|
| 1 | Correctness | No seat is ever sold twice, and no fan is ever charged twice |
| 2 | Elasticity (performance under sale peaks) | A sale opening with 50,000 fans per minute feels slow at worst, never broken |
| 3 | Availability at the door | Scanning keeps working for the whole evening, even without a network connection |
Stakeholders
| Who | What they expect from the architecture |
|---|---|
| Fans | A fair chance at a ticket, a clear answer within seconds, and no surprise charges |
| Organisers | Live sales numbers, payouts on time, and full control over prices and seat maps |
| Door staff | A scanner app that just works, fast, with or without reception |
| Product teams | Clear module boundaries, so three teams can ship without stepping on each other |
| Operations | Predictable sale openings, good dashboards, and no 3 a.m. surprises |
System Context
Who and what Roarline talks to. This is the top-level "context" diagram from the C4 model: the system is a single box, and everything around it is either a person or another system. In the C4 page you can zoom into it.
Architecture at a Glance
Roarline is a modular monolith: one deployable application, split into modules with strict boundaries. Each module owns its data and is one bounded context. A sixth context, Entry, lives in the scanner app. A separate waiting room service, not part of the application, sits in front of everything during sale openings.
| Module | Responsibility |
|---|---|
| Events & Venues | What is on, where, when, and the seat map of every venue |
| Reservations | Holds seats for a fan for ten minutes, then sells or releases them |
| Payments | Charges and refunds through the payment provider, exactly once |
| Fulfilment | Issues tickets, delivers them by email and to mobile wallets |
| Customer | Fan accounts, contact details and preferences |
The full picture, section by section, is in the arc42 documentation for Roarline.
Decisions
The architecture decisions Roarline has recorded as ADRs so far:
| ADR | Decision | Status |
|---|---|---|
| 001 | Start as a modular monolith, not microservices | Accepted |
| 002 | Prefer consistency over availability for seat reservations | Accepted |
| 003 | Scanner apps validate tickets offline and sync later | Accepted |
| 004 | Every payment operation requires an idempotency key | Accepted |
| 005 | Publish domain events through a transactional outbox | Accepted |
| 006 | Use a waiting room for sale openings above 5,000 fans | Accepted |
| 007 | Hold seats for ten minutes during checkout | Accepted |
| 008 | Extract Payments into its own service | Proposed |
ADR 002 and ADR 003 are worth reading together: the same company chose consistency for selling seats and availability for scanning them. Different operations, different trade-offs.
Incidents
Some of those decisions were made the hard way. Each incident below is one of the simulations on this site, so you can cause it yourself.
Documentation Applied
- Architecture Decision Records: the decisions above, with ADR 001 written out in full
- arc42: the whole architecture, section by section
- C4 model: zoom from context to containers to components, interactively
- Quality scenarios: the quality tree, with testable scenarios for every goal
- Domain-driven design: bounded contexts and the language of ticketing (the series continues)