Dev tools

Architecture Decision Record: Template and Examples

An architecture decision record (ADR) is a short document that captures one important technical decision and why it was made. Template, examples and tips.

By OmniAI Editorial · Nov 22, 2026 · 10 min read

An architecture decision record (ADR) is a short document, usually one or two pages, that captures a single significant technical decision: the context that forced it, the decision itself, and its consequences. Teams keep ADRs as numbered Markdown files next to the code, so anyone can later see not just what the system looks like but why it was built that way. The idea was popularized by Michael Nygard in 2011, and it's now used by companies and governments alike, including AWS, Microsoft, Google Cloud and the UK government, which publish guidance on it.

This guide explains what goes into an architecture decision record, gives a copyable architecture decision record template, walks through architecture decision record examples, covers the review process and architecture decision records best practices, and compares ADR vs RFC.

Why Architecture Decision Records Matter

Every codebase is full of decisions that once made sense: why the team picked PostgreSQL over MongoDB, why services talk over a queue instead of HTTP, why authentication lives in a separate service. Months later, the people who made those choices have moved on, and new team members face two bad options. Nygard described them in his original post: blindly accept the old decision without understanding it, or blindly change it without knowing what it was protecting against.

ADRs fix this by writing down the reasoning at the moment it's freshest. They help:

  • New team members understand the system's history quickly.
  • Teams avoid re-arguing settled questions, or reopen them deliberately with new information.
  • Reviewers and auditors see that trade-offs were considered.
  • AI coding agents follow the project's conventions. An agent that can read your decisions is less likely to "improve" code in a direction the team already rejected; our guide to AGENTS.md covers how agents pick up project instructions.

What Goes Into an Architecture Decision Record?

Nygard's original format has just a few parts, and most templates still follow it:

SectionWhat it containsTip
TitleA short noun phrase naming the decision, with a sequence number"ADR 0007: Use PostgreSQL for order data"
StatusProposed, accepted, deprecated or supersededLink to the ADR that replaces a superseded one
ContextThe forces at play: requirements, constraints, team skills, costs, deadlinesDescribe the situation neutrally, as facts
DecisionWhat the team will do, stated in full sentencesUse active voice: "We will..."
ConsequencesWhat happens after applying the decision, good, bad and neutralList the downsides honestly; they're what future readers most need

Nygard's guidance adds a few rules that still hold up: number ADRs sequentially and never reuse a number; when a decision is reversed, keep the old record and mark it superseded rather than deleting it; keep each document to one or two pages; and write it as if it's a conversation with a future developer, in full sentences rather than fragments.

Architecture Decision Record Template

Here's an architecture decision record template you can copy. It follows Nygard's structure and adds the "options considered" section that many teams find useful (the popular MADR template includes considered options and decision drivers).

  # ADR 0007: Use PostgreSQL for order data

  Status: Accepted (2026-03-14)
  Deciders: Platform team
  Supersedes: none

  ## Context

  What problem are we solving? What constraints matter (scale, team skills,
  cost, compliance, deadlines)? What do we know, and what are we assuming?

  ## Options considered

  1. Option A, with its main pros and cons
  2. Option B, with its main pros and cons
  3. Option C, with its main pros and cons

  ## Decision

  We will ... because ...

  ## Consequences

  Positive: ...
  Negative: ...
  Follow-up work: ...

Store ADRs in the repository, for example in docs/adr/ or docs/decisions/, with file names like 0007-use-postgresql-for-order-data.md. Keeping them next to the code means they're versioned, reviewed in pull requests and easy to find.

A light page with four section headings as small rounded bars, three grey and one orange, each followed by two ink lines.
A few short sections: title, status, context, decision, consequences.

Architecture Decision Record Examples

Real architecture decision record examples are usually less dramatic than people expect. Typical topics:

Example titleContext in one lineTypical consequence noted
ADR 0001: Record architecture decisionsWe need a lightweight way to keep decisionsEvery significant decision gets an ADR from now on
ADR 0004: Use PostgreSQL instead of MongoDB for ordersOrders need transactions and reporting joinsTeam must manage schema migrations
ADR 0009: Introduce a message queue between checkout and fulfillmentFulfillment outages were failing checkoutsEventual consistency; need monitoring of queue depth
ADR 0012: Adopt a modular monolith instead of microservicesSmall team, high coordination costClear module boundaries must be enforced in code review
ADR 0015: Use OAuth with an external identity providerCustomers require single sign-onDependence on the provider's uptime and pricing
ADR 0021: Route simple LLM requests to a smaller modelModel costs grew with trafficNeed evaluation to catch quality regressions

Many teams start with "ADR 0001: Record architecture decisions" itself, which explains why the team will keep ADRs and how. Several UK government services publish exactly such a first record in their public documentation.

A short worked example

ADR 0009: Introduce a message queue between checkout and fulfillment

Status: Accepted.

Context: Checkout calls the fulfillment service directly over HTTP. When fulfillment is slow or down, checkouts fail and customers can't pay, even though fulfillment could happen minutes later. We had three such incidents last quarter. The team already runs a managed queue service for email.

Decision: We will publish an "order placed" event to the queue when checkout succeeds. Fulfillment will consume events from the queue. Checkout will no longer call fulfillment directly.

Consequences: Checkout no longer depends on fulfillment's availability. Orders are fulfilled seconds to minutes later instead of instantly, which customer support must know about. We need monitoring and alerts for queue depth and failed messages, and fulfillment must handle duplicate events safely.

That's the whole ADR. It took perhaps twenty minutes to write and will save hours of confusion later.

The ADR Process: Proposed, Accepted, Superseded

AWS's prescriptive guidance describes a simple lifecycle that many teams use:

  1. Proposed: someone identifies a significant decision, takes ownership and writes the ADR. Proposed ADRs are ready for review.
  2. Review: the team discusses it, usually as a pull request or in a short meeting. The outcome is to accept it, ask for rework, or reject it.
  3. Accepted: once accepted, the ADR is immutable. You don't edit its content later.
  4. Superseded: if circumstances change, you write a new ADR that replaces the old one, and mark the old one as superseded with a link to the new one.

Treating accepted records as immutable is what keeps the log trustworthy: you can always see what the team believed at the time, and how thinking changed.

Four circles joined by ink arrows: a light circle, a grey circle, an orange circle and a dotted ink outline circle.
Proposed, reviewed, accepted, and later superseded rather than edited.

Architecture Decision Records Best Practices

  • Record decisions that are hard to reverse. Database choices, communication patterns, security models, hosting, major frameworks. Don't write ADRs for routine implementation details, or the log turns into noise.
  • Write them when the decision is made, not months later. The context fades fast.
  • Keep them short. One or two pages. Link to longer analyses instead of pasting them in.
  • Be honest about downsides. A record that lists only benefits isn't useful when things go wrong.
  • Name the alternatives you rejected, and why.
  • Review ADRs like code. Pull requests give everyone a chance to comment and leave a clear history.
  • Link ADRs from the code where the decision matters, for example in a module's README.
  • Make them findable: an index file listing every ADR with its status helps.
  • Revisit periodically. A quarterly look at "is this still true?" catches decisions that should be superseded.

ADR vs RFC

The ADR vs RFC question comes up often, because both are written documents about technical decisions:

Architecture decision recordRFC or design doc
PurposeRecord one decision and its reasoningPropose and discuss a design, often with many decisions
TimingAt the moment of decisionBefore building, to gather feedback
LengthOne or two pagesSeveral pages, often with diagrams
LifecycleImmutable once accepted; superseded by new ADRsEdited during discussion; may become outdated
AudienceFuture developersCurrent reviewers and stakeholders

They work well together: an RFC explores a problem and its options, and when the team decides, the outcome is captured in one or more ADRs. Teams that write specifications before coding, as in spec-driven development, often keep ADRs alongside the specs for the same reason.

Tools for Architecture Decision Records

You don't need special tools; a folder of Markdown files works. If you want help:

  • adr-tools and similar command-line tools create numbered files from a template and handle superseding.
  • MADR provides a well-known Markdown template (its name now stands for "Markdown Any Decision Records", reflecting that the format works for any important decision, not just architecture).
  • Log4brains and other static site generators publish ADRs as a browsable website.
  • Wikis and documentation platforms work too, though keeping ADRs in the repository makes them versioned with the code.

AI coding assistants can draft ADRs from a discussion or pull request description, which lowers the effort. Have a person check the context and consequences; those are the parts that matter. Our guide to AI code review covers how AI tools fit into review workflows.

Common Mistakes

  • Writing ADRs for everything, which buries the important ones.
  • Editing accepted ADRs instead of superseding them, which erases history.
  • Recording only the decision, without the context that made it right.
  • Leaving ADRs stuck in "proposed" forever with no owner.
  • Hiding them in a wiki nobody reads, far from the code they explain.

FAQ

What is an architecture decision record?

An architecture decision record is a short document that captures one significant technical decision, including the context, the decision and its consequences. Teams store ADRs as numbered files, usually in the code repository, to keep a history of why the system is built the way it is.

What should an ADR include?

A title with a sequence number, a status (such as proposed, accepted or superseded), the context and forces behind the decision, the decision itself, and its consequences, including the negative ones. Many templates also list the options considered.

When should you write an architecture decision record?

Write one when a decision is significant and costly to reverse, such as choosing a database, an architecture style, a hosting platform or a security approach. Write it when the decision is made, while the reasoning is still fresh.

What is the difference between an ADR and an RFC?

An RFC or design document proposes a design and gathers feedback before building, often covering many decisions. An ADR records one decision after it's made and stays unchanged once accepted. Teams often write an RFC first and capture the outcomes as ADRs.

Who invented architecture decision records?

Michael Nygard popularized architecture decision records in a 2011 article titled "Documenting Architecture Decisions", which proposed the short title, status, context, decision and consequences format that most templates still use.

All articles

Read next

Language

EnglishEnglish · en TürkçeTurkish · tr DeutschGerman · de العربيةArabic · ar

Account

Enter your email. We’ll send you a sign-in link and a 6-digit code. No password needed.

Sign in

Theme

Language

Show our email address

To keep spam out of our inbox, please confirm your own email first. We will send you a 6-digit code.

We send codes only to these providers: gmail.com, googlemail.com, outlook.com, hotmail.com, live.com, msn.com, proton.me, protonmail.com, pm.me, icloud.com, me.com, mac.com, yahoo.com, aol.com, gmx.de, gmx.net, web.de, t-online.de, yandex.com, omniai.blog