Architecture decision record

Also known as: ADR

On this page 8

An architecture decision record (ADR) is a short, structured document that captures one architecturally significant decision, the context that forced it, the options considered and the consequences the team accepts. In software architecture, ADRs form a chronological decision log that explains why a system looks the way it does, long after the people who shaped it have moved on.

The practice became widespread after Michael Nygard proposed a lightweight template in 2011. Its central idea is simple: diagrams and code show what was built, but only a written record preserves why it was built that way and which alternatives were rejected.

How an architecture decision record works

An ADR works by turning a design discussion into a numbered, immutable artifact stored next to the code it governs. Each record covers exactly one decision, receives a sequential identifier such as ADR-0014, and moves through a defined status lifecycle from proposal to acceptance and, eventually, to deprecation or replacement.

The defining rule is that an accepted ADR is never rewritten to reflect a new choice. When circumstances change, the team writes a new record that supersedes the earlier one and links back to it. The log therefore behaves like an append-only ledger: reading it in order reconstructs the reasoning of the system over time, including the mistakes.

The following table lists the sections found in most ADR templates and the question each one answers.

SectionQuestion it answersTypical length
TitleWhich decision is this, in a short noun phrase?One line
StatusIs it proposed, accepted, deprecated or superseded?One word plus a link
ContextWhich forces, constraints and requirements apply?One to three paragraphs
DecisionWhat exactly will the team do?One to two paragraphs
ConsequencesWhat becomes easier, harder or riskier afterward?A short list
Options consideredWhich alternatives were evaluated and why were they rejected?A list or comparison table
Typical sections of an architecture decision record

What counts as an architecturally significant decision

A decision deserves an ADR when it is expensive to reverse, affects quality attributes such as scalability, security or availability, or constrains many future choices. Choosing between microservices and a modular monolith qualifies; choosing a variable name does not.

Practitioners often apply a simple test: if a new engineer would reasonably ask “why did we do it this way?” within the first months, the answer belongs in a record. Typical subjects include data storage technology, communication style between components, authentication approach, deployment topology and adoption of patterns such as CQRS or event sourcing.

  • Structural choices: layered architecture, plugin architecture or service boundaries.
  • Technology choices: database engine, message broker, programming language or framework.
  • Integration choices: synchronous APIs versus asynchronous events, protocol and data format.
  • Operational choices: hosting model, observability stack, resilience mechanisms such as a circuit breaker.

Common ADR templates and formats

Several ADR templates are in common use, and they differ mainly in how much they record about the alternatives. Teams usually store records as Markdown files in the repository, often under a directory such as docs/adr, so that decisions are versioned and reviewed with the same pull request workflow as code.

The table below compares widely used formats.

FormatDistinctive featureBest suited to
Nygard templateMinimal: title, status, context, decision, consequencesTeams starting out with ADRs
MADRExplicit list of options with pros and consDecisions with several viable alternatives
Y-statementOne structured sentence linking context, choice and trade-offQuick capture during design sessions
Tyree and Akerman templateExtensive fields for assumptions, constraints and implicationsRegulated or large enterprise programs
Widely used ADR formats compared

Tooling is deliberately light. Command-line helpers such as adr-tools create numbered files and manage supersession links, and documentation generators can render the log as a browsable site, but a text editor and version control are sufficient.

ADRs compared with other architecture documentation

An ADR complements, rather than replaces, other architecture documentation. Structural models such as the C4 model describe the current shape of a system, whereas ADRs explain the reasoning behind that shape. Design documents and requests for comments are typically written before work begins and may discuss many issues at once.

ArtifactMain purposeTime orientationGranularity
Architecture decision recordRecords why one choice was madeHistorical, append-onlyOne decision
C4 diagramsShows structure at several zoom levelsCurrent stateWhole system
Design documentProposes and plans a feature or changeForward-lookingOne initiative
Request for commentsGathers feedback on a proposalForward-lookingOne proposal
Wiki pageGeneral reference and onboardingOften outdatedVariable
How ADRs relate to other documentation

A frequent and effective pattern is to let a request for comments or design review conclude with an ADR, so the outcome of a long discussion is condensed into a durable, searchable record.

Writing and maintaining a useful decision log

A useful ADR is short, specific and honest about trade-offs. One to two pages is typical; a record that grows longer usually mixes several decisions and should be split. Writing in the present tense and active voice (“We will use PostgreSQL for order data”) keeps the decision unambiguous.

Timing matters. Records written at the moment of decision capture the real constraints, while records written months later tend to rationalize the outcome. Many teams make an ADR part of the definition of done for any change that alters architecture, and they review records in pull requests just like code.

The following decision table summarizes practical guidance.

SituationRecommended actionReason
A decision is reversedWrite a new ADR that supersedes the old onePreserves the history of reasoning
Several decisions emerge from one meetingWrite one record per decisionKeeps each record linkable and focused
The team is unsureRecord the ADR as proposed and set a review dateMakes uncertainty visible
A legacy system has no recordsWrite retroactive ADRs for the most surprising choicesGives newcomers the highest value first
Practical guidance for ADR practice

Limitations and common mistakes with ADRs

The most common failure is decision log decay: records are written enthusiastically for a few months and then abandoned, leaving a misleading partial history. Other problems include recording trivial choices, which buries the important ones, and editing accepted records in place, which destroys the audit trail.

  • Missing alternatives: a record without rejected options cannot show that the choice was deliberate.
  • Vague consequences: listing only benefits hides the costs that future maintainers will face.
  • Detached storage: records kept in a separate tool drift away from the code they describe.
  • Approval bottlenecks: heavy sign-off processes discourage teams from writing records at all.

ADRs also do not guarantee good decisions. They make reasoning transparent and reviewable, which tends to improve quality, but a poorly reasoned choice remains poor even when it is well documented.

Stripped to the essentials

An architecture decision record is a short note that says: this is what we decided, and this is why. Software teams make many big choices, such as which database to use or how parts of a system talk to each other. Years later, nobody remembers the reasons.

Think of it as the minutes of a meeting, kept for one important choice at a time. If the team changes its mind, it does not erase the old note. It writes a new one that says what changed. The result is a diary of the system’s reasoning that any newcomer can read.

Where it is applied

A payments team of twelve engineers maintains an order platform that was split into services five years earlier. A new developer proposes merging two services because they always change together. Instead of a long debate, the team opens docs/adr and finds ADR-0007, which explains that the split was made to isolate card data for compliance audits, reducing the scope of each assessment.

The team concludes that the constraint still applies to one service but not to the other, since card handling has since moved to an external provider. It writes ADR-0031, which supersedes ADR-0007, approves the merge in a single review and records the reduced operational cost as a consequence. The decision takes one afternoon instead of several weeks, and the reasoning remains available to the next newcomer.