A new engineer asks why the service queues messages before writing to Postgresql. No one knows: the decision-maker left two years ago, the design doc was archived, and the commit says “add queue.” After a week of debate, the team removes it—then rediscovers the traffic spike that prompted it three months later.

An architecture decision record (ADR) prevents that. By the end, you’ll know what ADRs are, their origins, how records progress from proposal to history, common templates, and their limitations.

What Is an Architecture Decision Record?

An ADR is a brief record of one architectural decision: the situation, the team’s choice, and its consequences. Martin Fowler’s Architecture Decision Record entry says it’s typically one or two pages.

Three properties separate an ADR from other design documents:

  • One decision per record. Michael Nygard, who introduced the format, wrote in Documenting Architecture Decisions: “One ADR describes one significant decision for a specific project.”
  • Numbered and kept forever. Records carry a sequence number, and Nygard’s rule is blunt: “Numbers will not be reused.”
  • Stored with the code. Fowler notes, “The common advice is to keep decision records in the source repository of the code base to which they apply.”

A project’s records form what the ADR GitHub organization calls a decision log: “The collection of ADRs created and maintained in a project constitutes its decision log."

Why ADRs Exist

Code shows what a system does, but rarely why, which alternatives were rejected, or the reasoning scattered across people’s heads, chats, and meetings—all of which leak.

Nygard named the cost in 2011: when a new team member finds an unexplained decision, they must either accept it or reverse it without thinking. “It’s better to avoid either blind acceptance or blind reversal,” he wrote. Acceptance preserves outdated decisions; reversal repeats costly mistakes, like the opening story’s message queue.

Heavy architecture documents failed because nobody kept them current. Nygard’s solution was to write less, more often. “Agile methods are not opposed to documentation, only to valueless documentation,” he argued; a one-page record of a decision is easy to write when it’s made.

The idea spread. In November 2016, the Thoughtworks Technology Radar placed lightweight architecture decision records in Trial, moving them to Adopt a year later with the comment: “For most projects, we see no reason why you wouldn’t want to use this technique.”

What Goes in an ADR

Nygard’s original five-part template underlies most later variations.

  • Title. A short noun phrase with the record number, such as “ADR 7: Message queue for order writes”.
  • Status. The record’s lifecycle status. Nygard’s template uses proposed, accepted, deprecated, or superseded; AWS and MADR later added rejected.
  • Context. The forces at play: technical limits, deadlines, team skills, and politics. Nygard wants this section to neutrally describe the situation, not argue.
  • Decision. What the team will do, in full sentences and active voice (“We will…”).
  • Consequences. Everything that follows from the decision, good, bad, and neutral.

Here is what a short record looks like for the opening story, written as an illustration:

# ADR 7: Message queue for order writes

## Status

Accepted

## Context

During the spring sale, checkout traffic spiked to eight times normal load.
Direct writes exhausted the orders database connection pool, and checkouts
failed for 40 minutes. The team has two weeks before the next sale.

## Decision

We will send order writes through a message queue. A single consumer
writes to the database at a rate the connection pool can sustain.

## Consequences

* Checkout stays up during traffic spikes; writes back up in the queue instead.
* Order confirmation becomes eventually consistent: under load, the database updates seconds after checkout.
* The team now operates a queue and must monitor its depth.

Fowler recommends documenting serious alternatives and their pros and cons, confidence, and product changes that warrant review. Knowing “we’d revisit this if traffic dropped below X” helps readers quickly judge whether a decision still holds. He calls brevity “the most important thing to bear in mind” and advises putting the decision near the top.

How an ADR Moves Through Its Lifecycle

An ADR’s state changes, but its decision remains fixed. AWS Prescriptive Guidance describes the ADR process: “ADRs have states and therefore follow a lifecycle.”

flowchart TB accTitle: ADR lifecycle accDescr: A proposed ADR is reviewed, then reworked, rejected with a reason, or accepted. An accepted ADR stays until new insight leads to a new ADR, which supersedes it only if the team accepts it, or until it stops applying and is marked deprecated. A[Someone drafts an ADR] --> B[Proposed] B --> C{Team review} C -- Needs rework --> B C -- Rejected --> D[Rejected
reason recorded] C -- Accepted --> E[Accepted
decision frozen] E --> F{Does the decision
still hold?} F -- Yes --> E F -- New insight --> G[New ADR proposed] F -- No longer applies --> I[Deprecated
kept in the log] G --> G2{Team review} G2 -- Accepted --> H[Old ADR marked Superseded
links to the new one] G2 -- Rejected --> E

The steps:

  • Proposed. Anyone can draft a record. AWS recommends assigning an owner to each and starting reviews with 10–15 minutes of silent reading.
  • Accepted or rejected. The team decides; rejected records and reasons remain logged.
  • Superseded. When a decision changes, the old record isn’t rewritten. AWS says: “If new insights require a different decision, the team proposes a new ADR.” Once accepted, the new ADR supersedes the old one, which links to it.
  • Deprecated. Nygard’s template also lets users deprecate records when a decision no longer applies and has no replacement, such as a dropped product requirement. The log preserves the record, showing the decision once applied.

Nygard explained the old record remains because it “was the decision, but is no longer the decision.” Deleting it would erase the history of how the system evolved.

A decision log resembles case law: later rulings may overturn earlier ones, but preserve their reasoning and note what replaced them, letting anyone trace how the current position developed.

Templates Beyond Nygard

Nygard’s five sections cover most needs; teams wanting more structure have options:

  • MADR. The Markdown Architectural Decision Records template, at version 4.0.0 since September 2024, adds optional front matter for status, date, decision-makers, consulted, and informed. Its body lists Considered Options and records the outcome as “Chosen option: …, because …”. An optional Confirmation section explains how the team will verify the code follows the decision.
  • Y-statements. The ADR GitHub organization draws on Zdun et al.’s “Sustainable Architectural Decisions” and Y-statement format, condensing decisions into one sentence for skimmable logs.
  • A template collection. Joel Parker Henderson’s architecture-decision-record repository offers a dozen templates, from Nygard and MADR to arc42 and business cases, plus examples on secrets storage and monorepo versus multirepo.

Use one template per project; consistent logs are easier to search.

Where ADRs Fit With Other Practices

ADRs sit between architecture work and everyday delivery:

  • Architecture decision making. An ADR records a decision; it doesn’t make it. Fundamentals of Architecture Decision Making explains how to identify important decisions and weigh trade-offs.
  • Code review. Because ADRs are stored in the repository, proposed records follow the code pull request process. AWS also recommends reviewers flag changes that violate an accepted ADR and link to it.
  • Commit history. A commit message describes one change; an ADR records a decision that may span hundreds of commits. Structured commits, such as Conventional Commits, and ADRs answer different questions and complement each other.
  • Technical writing. An ADR is technical writing for future readers without context. Nygard’s advice to write “as if it is a conversation with a future developer” echoes Fundamentals of Technical Writing.

Trade-Offs and Limitations

ADRs are cheap to write but fail predictably.

  • Writing too many. Not every choice is architectural. Nygard limits ADRs to decisions affecting structure, non-functional characteristics (performance, availability, security), dependencies, interfaces, or construction techniques. Recording every library update buries important decisions and discourages reading the log.
  • Writing them after the fact. A record written months later reconstructs reasoning from memory and tends to justify the outcome. Its value lies in capturing context while fresh.
  • Losing them. Wiki records drift from the code they describe. The Radar entry says teams “generally prefer storing them in source control with simple markup” for this reason.
  • Scope beyond one repository. Fowler notes that ADRs affecting multiple codebases need a shared repository accessible to every team, rather than one product’s repository.
  • Searchability at scale. The MADR project warns that “Large projects may accumulate hundreds of decision records over time, and finding them might be hard.” Consistent titles and status fields make logs searchable; flat folders of free-form files do not.
  • Strict immutability versus reality. Fowler and AWS favor immutable accepted records, but Henderson’s repository reports: “In theory, immutability is ideal. In practice, mutability has worked better for our teams.” A middle ground: freely fix typos and add links, but supersede records when decisions change.

Common Misconceptions

“ADRs are a heavyweight process.” The format replaces failed heavyweight documents: a good record fits on one page and takes less time to write than the decision meeting.

“An ADR is a design document.” A design document explains how a system works across decisions. An ADR records one decision and its rationale. Design documents can reference multiple ADRs, which remain in the decision log after the document becomes outdated.

“Once accepted, an ADR is the rule forever.” An accepted record describes the best decision for its context. Its Context section matters: when the traffic, team, or budget changes, the record expires—even before a replacement is written. Nygard’s template marks it deprecated; Fowler’s suggested reevaluation triggers make that judgment actionable.

“Rejected proposals aren’t worth keeping.” A rejected record shows whether anyone considered X and why it failed, saving others a week of rediscovery. AWS keeps these records and reasons for this purpose.

“You need special tooling.” A folder of numbered Markdown files under doc/adr, as Fowler describes, is sufficient. Tools like Nat Pryce’s adr-tools automate numbering and superseding but are optional.

Conclusion

An ADR is a one-page answer to a future question: “Why is it built this way?” Each record captures one decision, its context, and consequences; lives beside the code; and remains permanently. New records supersede changed decisions, making the log like case law: current rules and the reasoning behind each predecessor.

ADR 7 could have saved the opening team: one repository page, written when the queue was added.

Next Steps

References