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

  1. 1Introduction and GoalsWhy does it exist?
  2. 2ConstraintsWhat can't we change?
  3. 3Context and ScopeWhat's inside, what's outside?
  4. 4Solution StrategyWhat's the big idea?
  5. 5Building Block ViewWhat is it made of?
  6. 6Runtime ViewHow does it behave?
  7. 7Deployment ViewWhere does it run?
  8. 8Crosscutting ConceptsWhat applies everywhere?
  9. 9Architecture DecisionsWhy is it like this?
  10. 10Quality RequirementsWhat does "good" mean?
  11. 11Risks and Technical DebtWhat keeps us up at night?
  12. 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

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

GoalApproach
CorrectnessSeats are reserved with strong consistency in one database; payments use idempotency keys; events go out through a transactional outbox
ElasticityA waiting room admits fans at a rate the system can handle; the application scales horizontally
Availability at the doorScanner 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 blockResponsibilityDepends on
Events & VenuesEvents, dates, venues and seat maps-
ReservationsHolds, sells and releases seatsEvents & Venues
PaymentsCharges and refunds via the payment provider-
FulfilmentIssues and delivers ticketsReservations (via SeatSold events), Customer (contact details)
CustomerAccounts, 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

  1. The fan joins the waiting room and gets a place in the queue
  2. When admitted, the fan picks a seat; Reservations holds it for ten minutes
  3. The fan pays; Payments charges the card through the payment provider, with an idempotency key
  4. Once the payment is confirmed, Reservations marks the seat as sold and, in the same local database transaction, writes a SeatSold event to its outbox table
  5. A relay publishes the event; Fulfilment picks it up, issues the ticket and sends it by email and to the wallet
  6. 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

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

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

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

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

Further Reading

Case study: RoarlineThe fictional ticketing platform behind every example on this page.