arc42: A Template That Answers the Questions People Ask
Every new team member asks the same questions. Why does this system exist? What talks to what? Where does it run? Why on earth did we build it like this? arc42 is a free template that gives each of those questions a place to be answered, once, so nobody has to answer them in a meeting again.
It was created by Gernot Starke and Peter Hruschka and has been refined in practice since 2005. It has twelve sections. It does not prescribe a tool, a notation or a level of detail: you can write it in a wiki, in Markdown next to your code, or in AsciiDoc.
Think of arc42 as a cabinet, not a form. The twelve drawers tell you where things go. Nobody expects every drawer to be full. A short arc42 document with four good sections beats a long one that was filled in to make the template happy.
Throughout this page, each section comes with an example from Roarline, a fictional ticketing platform for concerts and festivals.
The 12 Sections at a Glance
- 1Introduction and GoalsWhy does it exist?
- 2ConstraintsWhat can't we change?
- 3Context and ScopeWhat's inside, what's outside?
- 4Solution StrategyWhat's the big idea?
- 5Building Block ViewWhat is it made of?
- 6Runtime ViewHow does it behave?
- 7Deployment ViewWhere does it run?
- 8Crosscutting ConceptsWhat applies everywhere?
- 9Architecture DecisionsWhy is it like this?
- 10Quality RequirementsWhat does "good" mean?
- 11Risks and Technical DebtWhat keeps us up at night?
- 12GlossaryWhat do we mean by...?
Where to Start
If you only have a day, write sections 1, 3, 4 and 9. Goals, context, strategy and decisions answer most of the questions new people ask, and they change slowly. Add the other sections when someone actually needs them.
1Introduction and Goals
Why does this system exist, and what must it be especially good at?
A short description of what the system does for whom, the top three to five quality goals, and the most important stakeholders with their expectations. This is the section everybody reads, so keep it to one screen.
Common mistake: listing every requirement. Requirements live in your backlog. This section is about the few goals that shape the architecture.
Roarline
Roarline sells tickets for concerts, festivals and theatre for 320 organisers. Quality goals, in order: (1) correctness, no seat sold twice and no fan charged twice; (2) elasticity, a sale opening with 50,000 fans per minute is slow at worst, never broken; (3) availability at the door, scanning works without a network.
2Architecture Constraints
What has already been decided for us?
Anything that limits your freedom before you start: technical (mandated platforms, existing systems), organisational (team size, budget, deadlines) and legal (regulations, data protection). Constraints are not decisions you made; they are the rules of the game.
Common mistake: listing your own decisions as constraints. "We use PostgreSQL" is a decision, unless the company really mandates it.
Roarline
- The existing contract with the payment provider runs for three more years
- Customer data must stay in Europe (data protection law)
- 16 developers, strongest in Java; no dedicated platform team
- The new platform must be live before the summer festival season
3Context and Scope
What is part of our system, and what is outside of it?
The system as a single box, with every user and neighbouring system around it, and what flows between them. Separate the business context (who exchanges what) from the technical context (protocols and channels) if it helps.
Common mistake: drawing the inside of the system here. Inside comes in section 5. Here, the system is one box, which is exactly level 1 of the C4 model.
Roarline
Fans buy tickets, organisers manage events, door staff scan tickets. Roarline uses an external payment provider, an email and SMS provider, and mobile wallets. See the context diagram in the case study.
4Solution Strategy
What is the big idea, in a few sentences?
The fundamental decisions and approaches that shape everything else: the architectural style, key technologies, and how the top quality goals are met. Think of it as the elevator pitch of the architecture, with links to the details.
Common mistake: writing a technology list. A good strategy explains how the approach serves the goals from section 1.
Roarline
| Goal | Approach |
|---|---|
| Correctness | Seats are reserved with strong consistency in one database; payments use idempotency keys; events go out through a transactional outbox |
| Elasticity | A waiting room admits fans at a rate the system can handle; the application scales horizontally |
| Availability at the door | Scanner apps download signed ticket lists and validate offline |
| Team autonomy (organisational goal) | A modular monolith with strict module boundaries, so modules can be extracted later if needed |
5Building Block View
What is the system made of?
The static structure: the main building blocks, their responsibilities and their dependencies, refined level by level. Level 1 shows the system's main parts. Go deeper only where it helps someone understand or change the system.
Common mistake: a diagram of boxes without responsibilities. Every block needs one sentence that says what it is for. C4 container and component diagrams work well here; see Roarline's.
Roarline, level 1
| Building block | Responsibility | Depends on |
|---|---|---|
| Events & Venues | Events, dates, venues and seat maps | - |
| Reservations | Holds, sells and releases seats | Events & Venues |
| Payments | Charges and refunds via the payment provider | - |
| Fulfilment | Issues and delivers tickets | Reservations (via SeatSold events), Customer (contact details) |
| Customer | Accounts, contact details, preferences | - |
| Waiting room (separate service) | Queues fans during sale openings | - |
6Runtime View
How do the building blocks work together in the important scenarios?
A handful of scenarios that matter: the most important use cases, critical error paths, startup and shutdown. Sequence diagrams or simple numbered lists both work.
Common mistake: documenting every use case. Pick the scenarios that are surprising, risky or central.
Roarline: buying a ticket during a sale opening
- The fan joins the waiting room and gets a place in the queue
- When admitted, the fan picks a seat; Reservations holds it for ten minutes
- The fan pays; Payments charges the card through the payment provider, with an idempotency key
- Once the payment is confirmed, Reservations marks the seat as sold and, in the same local database transaction, writes a
SeatSoldevent to its outbox table - A relay publishes the event; Fulfilment picks it up, issues the ticket and sends it by email and to the wallet
- If the fan doesn't pay within ten minutes, the hold expires and the seat goes back on sale
7Deployment View
Where does the software run, and on what?
The infrastructure: environments, servers or cloud services, networks, and which building block runs where. Include the things operations people ask about: scaling, redundancy and how deployments happen.
Common mistake: copying the cloud console. Show what someone needs to understand the system, not every resource.
Roarline, production
- CDN in front of everything; the waiting room runs at the edge
- The application runs as 3 to 30 containers in a managed Kubernetes cluster, scaled ahead of announced sales
- PostgreSQL with a synchronous standby in a second availability zone
- A message broker for events between modules and to fulfilment
- Scanner apps on staff phones, syncing whenever they have a connection
8Crosscutting Concepts
Which rules and solutions apply across the whole system?
Topics that don't belong to a single building block: error handling, security, logging and monitoring, persistence, internationalisation, testing. Write each concept once here instead of repeating it everywhere.
Common mistake: leaving these implicit. Unwritten conventions are how three teams end up with three ways of logging.
Roarline
- Idempotency: every state-changing API accepts an idempotency key (why)
- Events: modules publish domain events only through the transactional outbox (why)
- Observability: every request carries a correlation ID from the waiting room to the ticket email
- Module boundaries: modules talk through published interfaces only, enforced by automated architecture tests
9Architecture Decisions
Why is the system built the way it is?
The important, hard-to-reverse decisions, with their context and consequences. Most teams keep them as Architecture Decision Records and link to them from here.
Common mistake: recording only the outcome. Without the context and the alternatives, a decision can't be revisited sensibly.
Roarline
Eight ADRs so far, including "start as a modular monolith" and "every payment operation requires an idempotency key". The full list is in the case study.
10Quality Requirements
What exactly does "good" mean for this system?
The quality goals from section 1, refined into a quality tree and concrete, testable quality scenarios: a stimulus, the environment, and the measurable response you expect.
Common mistake: vague adjectives. "Fast", "scalable" and "secure" can't be tested. "99% of fans get a seat decision within 3 seconds" can. More in quality scenarios, including a builder to try it.
Roarline
- Elasticity: when a sale opens and 50,000 fans arrive within one minute, 99% of admitted fans get a seat decision within 3 seconds
- Correctness: when two fans try to buy the same seat at the same moment, exactly one succeeds and the other is offered a different seat
- Availability: when the venue has no mobile reception, scanning a valid ticket takes less than one second, for at least six hours without a connection
11Risks and Technical Debt
What could go wrong, and what do we already know is not ideal?
Known risks and shortcuts, ideally with their likelihood, impact and what you plan to do about them. This section makes problems visible before they become incidents.
Common mistake: leaving it empty because it feels like admitting failure. An honest list here is a sign of a healthy team.
Roarline
- Risk: bots buy the best seats in the first second. Mitigation: bot detection in the waiting room
- Risk: the single payment provider is a single point of failure during sales
- Risk: two scanners without a network could both admit the same ticket, because neither knows about the other's scan. Accepted for now (ADR 003); scans are reconciled when the scanners sync
- Debt: the outbox table is never cleaned up and grows by a million rows per month
- Debt: seat maps for large stadiums render slowly on older phones
12Glossary
What exactly do we mean when we use these words?
The important domain and technical terms, with one definition each. A glossary prevents the classic bug where two teams use the same word for different things.
Common mistake: defining technical acronyms only. The domain terms are where the misunderstandings are.
Roarline
- Hold
- A seat temporarily reserved for one fan during checkout; it expires after ten minutes
- Sale opening
- The moment tickets for an event go on sale, usually announced in advance
- Allocation
- A block of seats an organiser reserves for a specific channel, such as a fan club presale
- Ticket
- Proof of entry for exactly one seat or standing place at exactly one event
- Scan
- Validation of a ticket at the venue entrance; a ticket should be scanned in only once (see the offline risk in section 11)
Keeping It Alive
- Keep it next to the code (docs-as-code), so it is reviewed in the same pull requests that change the architecture
- Draw diagrams as code where you can, so they can be diffed and don't rot in a drawing tool
- Give each section an owner, and check the document in your regular reviews
- Prefer links over copies: link to ADRs, API specs and dashboards instead of repeating them
- Delete what nobody reads; outdated documentation is worse than none
Further Reading
- arc42.org: the template, free to download in many formats
- docs.arc42.org: tips and examples for every section
- arc42 by Example: complete, real-world arc42 documents (Leanpub)