How to make architecture decisions your team can still explain in three years

I-1

Record each significant decision as context, decision and consequences, draw the system with the C4 model, and review both as the system and its needs change.

Published · By National Front Corp.

Write each significant decision down when you make it, in a short architecture decision record that states the context, the decision and its consequences. Keep a small set of diagrams at consistent levels of detail, such as those of the C4 model, and tie both to the quality attributes the system must meet. Then review the records as the system changes, so that three years from now your team inherits the reasoning as well as the code.

This matters because most systems outlive the people who designed them. When the reasons behind a structure are lost, teams either preserve choices that no longer make sense or reverse choices that were made for good reasons they can no longer see.

What is an architecture decision record?

An architecture decision record (ADR) is a short document that captures one decision. The format was popularized by Michael Nygard in 2011 and is now common practice. A typical record has five parts:

  1. Title. A short phrase naming the decision, such as “Use PostgreSQL for order data”.
  2. Status. Proposed, accepted, deprecated, or superseded by a later record.
  3. Context. The forces at play: requirements, constraints, the options considered and what was known at the time.
  4. Decision. What the team decided, stated plainly.
  5. Consequences. What becomes easier, what becomes harder, and which trade-offs the team accepts.

Records are numbered and kept with the code. Once accepted, a record is not rewritten; when a decision changes, a new record supersedes the old one and links to it, so the history of the system’s reasoning stays readable in order. Templates such as MADR extend the format with explicit options and their pros and cons, which helps when the choice was close.

Which decisions deserve a record?

Record the decisions that are expensive to reverse, or that someone new is likely to question. Typical examples:

  • the programming language, framework and main data stores;
  • the boundaries between modules or services, and which one owns each piece of data;
  • synchronous calls versus messaging between parts of the system;
  • how users and services authenticate, and where the trust boundaries sit;
  • hosting, regions and how the system recovers from failure;
  • buying a component instead of building it.

Everyday choices, such as a small library or a naming convention, do not need a record. A useful test: if a new engineer would reasonably ask “why did we do it this way?”, write the answer down now, while the people who know it are still around.

How should you draw the system?

The C4 model, created by Simon Brown, describes a software system at four levels of zoom:

  1. Context. The system, the people who use it and the other systems it depends on.
  2. Containers. The separately deployable or runnable parts: applications, services, databases, queues. In C4, a container is not necessarily a Docker container.
  3. Components. The main building blocks inside a container and their responsibilities.
  4. Code. Classes or modules, usually generated by tools and rarely drawn by hand.

Most teams get the most value from the first two levels and add component diagrams only for the more complex containers. Keep diagrams as text in the repository, using tools such as Structurizr, PlantUML or Mermaid, so they are versioned, reviewed and updated with the code. A diagram that nobody can edit goes stale quickly.

For the written documentation around the diagrams, the arc42 template offers a consistent structure that covers goals, constraints, context, building blocks, runtime behaviour, deployment, decisions and risks.

Which quality attributes should shape the design?

Most architecture decisions are driven by quality attributes: the properties that describe how well the system does its job, rather than what it does. The ones that matter most often are:

  • Scale. Expected users, requests and data volume, now and in three years.
  • Availability and recovery. How much downtime is acceptable, how quickly service must be restored and how much data can be lost, often written as recovery time and recovery point objectives.
  • Security. Which data is sensitive, who may access what, and which regulations apply.
  • Cost. What the system may cost to run, and how that cost grows with use.
  • Changeability. How often the system will change, and how many teams will change it.

Make each one measurable, for example a response time for the main workflows at a stated load, and write the targets down. They are the context that decision records refer to, and they make trade-offs explicit: higher availability usually costs more, and stronger isolation often slows delivery. When security requirements are significant, security architecture is best designed in the same sessions rather than added afterward.

When should you split a system into services?

Start with a well-structured single deployable, often called a modular monolith: one application, divided into modules with clear boundaries, where each module owns its data and exposes an explicit interface. It is simpler to build, test, deploy and monitor, and it lets you find the right boundaries through real use before they become network calls.

Split a module into a separate service when there is a concrete reason, such as:

  • it must scale very differently from the rest of the system;
  • a separate team needs to release it on its own schedule;
  • it has different security, compliance or data residency requirements;
  • it must stay available when the rest of the system fails, or the reverse.

Every split has a price: calls that can fail over the network, data consistency across services, more pipelines and more monitoring. Conway’s law, the observation that systems tend to mirror the communication structure of the organizations that build them, is a useful guide here: boundaries that match team boundaries tend to last. Record each split, and the reason for it, in its own decision record.

How do you keep the decisions current?

Records only help if they stay true. Three habits keep them that way:

  1. Review each new record like code. Propose it in a pull request, let the people affected comment, then accept or reject it.
  2. Revisit on a schedule. At major releases, or at least once or twice a year, check the main records and quality targets against how the system actually behaves. Assumptions about load, cost and team size are the ones most likely to have changed.
  3. Supersede rather than erase. When a decision no longer holds, write a new record that explains what changed. The old one stays, marked as superseded, because the reason it was once right is part of the history.

Automated checks help too. Tests that enforce which modules may depend on which, and alerts that track response times and costs against their targets, turn parts of the architecture into something the build verifies on every change.

Our system architecture engagements deliver context and container diagrams, interface definitions and a decision record written for the engineers who will build and change the system after the architects have moved on. When our software development team builds from the design, the architects stay available as questions come up. If you want to set up the practice on a new system, or recover the reasoning behind an existing one, an exploratory meeting is a good place to start.

Questions we hear often

Where should architecture decision records be stored?
In the same repository as the code they describe, usually as numbered Markdown files in a folder such as docs/adr. That way they are versioned with the code, reviewed through the same pull requests and easy to find for the engineers who need them. For decisions that span several systems, a shared architecture repository works, as long as each system's repository links to it.
How long should an architecture decision record be?
Usually one or two pages. A record needs enough context for a reader who was not in the room to understand the problem, the options considered, the decision and its consequences. If it runs much longer, it is probably mixing several decisions or turning into design documentation, which belongs elsewhere. A short record that actually gets written is worth more than a thorough template that nobody fills in.
Who should write architecture decision records?
Usually the engineer or architect closest to the decision, often the person proposing it. Writing a record is not the same as deciding: the draft is reviewed by the people the decision affects and accepted by whoever is responsible for that part of the system, which on a small team may be the whole team. Each record should name who decided and when, so later readers can place it in context.
Should we write records for decisions made in the past?
For the ones people still ask about, yes. Pick the few past decisions that shape daily work or cause recurring debate, such as the choice of database or the boundaries between services, and write a record for each, reconstructing the context as well as you can. Mark those records as written after the fact. You do not need to rebuild the whole history; record new decisions properly from today.