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

1.4 Mtickets sold per year
320organisers and venues
50,000fans in the first minute of a big sale
16developers in 3 product teams

What Makes It Hard

Quality Goals

The three goals that shape every architectural decision, in priority order:

#Quality goalWhat it means for Roarline
1CorrectnessNo seat is ever sold twice, and no fan is ever charged twice
2Elasticity (performance under sale peaks)A sale opening with 50,000 fans per minute feels slow at worst, never broken
3Availability at the doorScanning keeps working for the whole evening, even without a network connection

Stakeholders

WhoWhat they expect from the architecture
FansA fair chance at a ticket, a clear answer within seconds, and no surprise charges
OrganisersLive sales numbers, payouts on time, and full control over prices and seat maps
Door staffA scanner app that just works, fast, with or without reception
Product teamsClear module boundaries, so three teams can ship without stepping on each other
OperationsPredictable 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.

Roarline system context Fans buy tickets, organisers manage events and door staff scan tickets in Roarline. Roarline uses a payment service provider, an email and SMS provider, and mobile wallets. buy tickets manage events, see sales scan tickets charge, refund send tickets, updates add to wallet FansPerson OrganisersPerson Door staffPerson RoarlineTicketing platform Payment providerExternal system Email & SMS providerExternal system Mobile walletsExternal system
Level 1 of the C4 model: Roarline as one box, with the people and systems around 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.

ModuleResponsibility
Events & VenuesWhat is on, where, when, and the seat map of every venue
ReservationsHolds seats for a fan for ten minutes, then sells or releases them
PaymentsCharges and refunds through the payment provider, exactly once
FulfilmentIssues tickets, delivers them by email and to mobile wallets
CustomerFan 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:

ADRDecisionStatus
001Start as a modular monolith, not microservicesAccepted
002Prefer consistency over availability for seat reservationsAccepted
003Scanner apps validate tickets offline and sync laterAccepted
004Every payment operation requires an idempotency keyAccepted
005Publish domain events through a transactional outboxAccepted
006Use a waiting room for sale openings above 5,000 fansAccepted
007Hold seats for ten minutes during checkoutAccepted
008Extract Payments into its own serviceProposed

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