An architecture decision record (ADR) is a short, durable explanation of a consequential technical choice: what was decided, why now, what alternatives were rejected, and what must remain true afterwards. It keeps a system’s most important constraints from living only in someone’s memory or an expired chat thread.
Every product accumulates decisions that look strange without their context. Why does this workflow use a queue? Why is tenant data in shared tables instead of separate databases? Why does authentication live in a vendor rather than the app? When the context is lost, teams either repeat old debates or reverse decisions without knowing what they were protecting. ADRs are a cheap way to prevent both.
This guide covers what to record, a template that fits on one screen, examples of good and weak records, and how to make ADRs part of normal delivery rather than a documentation chore.
What an ADR is and is not
| An ADR is | An ADR is not |
|---|---|
| One decision per record | A design document for a whole feature |
| Written when the decision is made | A retrospective written months later |
| Short enough to read in a few minutes | A comprehensive specification |
| Stored with the code | A page in a wiki nobody updates |
| Permanent, superseded rather than edited | A living document that is rewritten |
| About why, with tradeoffs | A list of technologies used |
Write one when a choice changes how the product will evolve: introducing a queue, choosing a tenant isolation model, defining authentication ownership, deciding how public content is rendered, or extracting a service.
The smallest useful ADR
Use this structure:
# ADR-012: Use an outbox for workflow events
## Status
Accepted, 2026-08-01
## Context
Creating a task also starts downstream automation. A database write can succeed
while publishing the event fails, and the automation silently never runs.
## Decision
Write the task and an outbox event in one database transaction. A worker delivers
the event with retries and idempotency keys.
## Consequences
Delivery is eventually consistent. We need monitoring for stuck events and a replay
path. Consumers must tolerate duplicates.
## Alternatives considered
Publish directly after the database write; rejected because it can lose events.
Use a distributed transaction; rejected as unsupported by our queue and too complex.
The decision in this example is described in more depth in how to design background jobs that do not lose work. The ADR does not repeat that explanation. It records that the team chose it, why, and what they now have to maintain.
Section by section
Title. A short imperative statement of the decision, with a sequence number. “Use an outbox for workflow events” is better than “Event handling.”
Status. Proposed, accepted, deprecated, or superseded, with a date. Link to the replacing ADR when superseded.
Context. The forces at play: product requirements, constraints, risks, and what is happening now that makes the decision necessary. This is the most important section.
Decision. What the team will do, in plain words. One decision.
Consequences. What becomes easier, what becomes harder, what new work or monitoring is required, and what assumptions must remain true.
Alternatives considered. The realistic options and why they were rejected. This prevents the same debate from starting again without new information.
Write context, not preference
The context should name the real product pressure, not a technology preference.
Weak:
We will use Kafka because it scales and is industry standard.
Better:
Customer notifications are sent inside the request after the order is saved. When the email provider is slow, checkout requests time out, and when the process restarts after the commit, notifications are lost. We need notification work to be durable and outside the request path. Current volume fits comfortably in our existing database.
The second version gives the next engineer something testable. If volume grows or the email provider changes, they can see whether the original reasoning still holds. It also makes it more likely that the decision becomes “a database-backed queue and an outbox” rather than a new piece of infrastructure the team must operate.
What deserves an ADR?
Write one for choices that are hard to reverse, cross a team boundary, alter failure behavior, or will be questioned during the next major change. Typical examples:
- where authorization is enforced and how roles are modeled;
- whether a workflow runs synchronously or in a background worker;
- how schema changes remain compatible during deployment;
- the source of truth for a business concept;
- the boundary between a vendor integration and product logic;
- the tenant isolation model in a SaaS product;
- whether to split a capability into a separate service;
- rendering strategy for public pages, such as static, server-rendered, or client-rendered;
- accepting a known compromise or piece of technical debt.
The last item is easy to overlook. When a team deliberately decides not to fix something, a short ADR explaining why is valuable. It turns an apparent mistake into a documented tradeoff, which is part of estimating and reducing technical debt honestly.
Do not make ADRs a ceremony for naming a utility function or choosing a date library. The record should reduce future uncertainty enough to repay the few minutes it takes to write.
A quick test for whether to write one
| Question | If yes |
|---|---|
| Would reversing this take more than a few days of work? | Write an ADR |
| Will another team or system depend on this choice? | Write an ADR |
| Does it change how the product fails, recovers, or protects data? | Write an ADR |
| Will a new engineer likely ask “why is it like this?” | Write an ADR |
| Is it a local implementation detail with an obvious choice? | Skip it |
Where ADRs live and how they flow
Keep ADRs in the repository they affect, for example in docs/adr/, as numbered Markdown files. That way they are versioned with the code, reviewed in pull requests, and visible to anyone reading the codebase.
flowchart LR
accTitle: Architecture decision record lifecycle
accDescr: A significant decision is drafted as a proposed ADR in a pull request, reviewed with the people affected, and accepted. It is linked from implementation pull requests and runbooks. When the context changes, a new ADR supersedes the old one, which remains as history.
N["Significant decision"] --> P["Draft ADR<br/>status: proposed"]
P --> R["Review in a pull request"]
R --> A["Accepted"]
A --> L["Linked from code PRs,<br/>runbooks, reviews"]
L --> C{"Context changed?"}
C -->|"Yes"| S["New ADR supersedes old"]
S --> P
C -->|"No"| L
A practical workflow:
- Someone proposes a significant change and drafts an ADR with status “proposed.”
- The ADR is opened as a pull request so the affected people can review and comment.
- Discussion updates the context, alternatives, and consequences.
- When agreed, the status becomes “accepted” and the pull request is merged.
- Implementation pull requests link to the ADR.
- Runbooks and architecture overviews link to relevant ADRs.
For a small team, the review may be one other engineer and a product owner. That is enough. The goal is shared understanding, not approval bureaucracy.
Keep decisions alive
An accepted ADR is not permanent truth. Constraints change: traffic grows, a vendor changes pricing, a team splits, a regulation appears. When that happens:
- write a new ADR that describes the new context and decision;
- mark the old one as superseded and link to the new one;
- leave the old text as it was.
Avoid editing history until it says what people wish they had decided. The old record remains useful evidence of why the system looks the way it does, and it often explains code that has not yet been migrated.
ADRs in larger decisions
Some decisions are big enough to need more than one record. Extracting a service from a monolith, for example, may involve decisions about the boundary, data ownership, the contract, and the migration plan. Write one ADR per decision and link them. The framework in monolith vs microservices for a growing product ends with recording the decision for exactly this reason.
Similarly, introducing events between modules usually deserves an ADR for the event contract, the delivery guarantee, the ordering assumptions, and who owns failed events.
ADRs for inherited systems
When you take over a codebase with no records, do not try to document every past decision. Write ADRs for:
- decisions you discover that are surprising and important, labeled as “recorded after the fact”;
- the first significant decisions you make as the new owner.
Even a handful of records gives the next person a much better starting point than none.
Common mistakes
- Writing ADRs after the fact for everything. Record surprising, important decisions; skip the obvious ones.
- Recording only the decision. Without context and alternatives, the record cannot be evaluated later.
- Hiding ADRs in a separate wiki. Engineers read code and pull requests; keep ADRs there.
- Editing accepted ADRs. Supersede instead.
- Making ADRs a gate. If writing one blocks work for days, the process is too heavy.
- Never linking them. An ADR nobody can find is an ADR nobody reads.
ADR checklist
- The decision is consequential: hard to reverse, cross-boundary, or failure-changing.
- One decision per record with a numbered, imperative title.
- Status and date are set.
- Context names the real product pressure and constraints.
- Decision is stated plainly.
- Consequences include new work, monitoring, and assumptions.
- Realistic alternatives and reasons for rejection are listed.
- It is stored in the repository and reviewed in a pull request.
- Implementation pull requests and runbooks link to it.
- Superseded records are marked and linked, not rewritten.
Link ADRs from implementation pull requests, operating runbooks, and the relevant architecture review. That turns them from a folder of historical notes into part of how the team ships safely. For a broader review method, see the full-stack architecture review checklist.
Frequently asked questions
What is an architecture decision record?
An architecture decision record (ADR) is a short document that captures one consequential technical decision: the context that forced it, the decision itself, the alternatives considered, and the consequences the team accepts. It is stored with the code and kept as a permanent record.
When should a team write an ADR?
Write one when a choice is hard to reverse, crosses a team or system boundary, changes failure or security behavior, or is likely to be questioned during the next major change. Do not write ADRs for routine implementation details.
Where should ADRs be stored?
Store them in the repository they affect, usually in a docs/adr folder as numbered Markdown files, so they are versioned with the code, reviewed in pull requests, and found by engineers who read the codebase.
What happens when an ADR becomes outdated?
Do not rewrite it. Write a new ADR that supersedes it, link the two, and mark the old one as superseded. The old record remains useful evidence of why the system looked the way it did.
Keep reading
- Architecture, DevOps & Delivery Monolith vs Microservices: How to Choose for a Growing Product
- Architecture, DevOps & Delivery Event-Driven Architecture for SaaS: Where It Helps and Where It Adds Risk
- Architecture, DevOps & Delivery Full-Stack Architecture Review Checklist: Frontend, API, Database, and Deployment