Bookmarks

ADR — architecture decision record

A document that captures one important architectural decision in a short template: the context, the chosen option and the consequences.

Also: architecture decision record, decision record

checked 8 Nov

All terms

Teams constantly choose how to structure a system: which database to pick, how to split the services, where to put a queue. Six months later nobody remembers why that particular option was chosen, and a new developer suggests “fixing” the very thing the whole project rests on. An ADR pins down a single decision in a short record: what was decided, why and with what consequences. Michael Nygard proposed the format in 2011.

What it contains

SectionWhat is recorded
Titlea number and a short name for the decision: “0001 — store sessions in Redis”
Statusproposed, accepted, deprecated, superseded by record 0007
Contextthe problem to solve, the constraints and requirements
Decisionthe option that was chosen and what exactly it prescribes
Consequenceswhat the decision brings, what it makes harder and what has to be given up

How the record set is managed

  • Files live next to the code, for example in docs/adr/, and go through the usual code review.
  • Files are numbered in sequence: 0001-…md, 0002-…md; an accepted record is never edited retroactively.
  • Write in plain paragraphs: a list or table in a record — only when needed, not as a substitute for text.

Length and decision history

Keep the record short: Nygard suggested staying within one–two pages and writing coherent paragraphs rather than choppy lists. Later templates such as MADR appeared, adding the options considered and links to further material to Nygard’s sections. The record set is kept like a log: when a decision is changed or reversed, the old record is not deleted but marked “superseded” with a link to the new one. The consequences of one record often become the context for the next — this is how decisions build up into the project’s history.

Sources

the term is written from these pages

Verified 8 Nov

Not to be confused with

what it is mixed up with and how it differs

  • SADsoftware architecture document

    A SAD describes the architecture of the system as a whole, while an ADR covers a single decision in isolation; one large document is no substitute for short records.

In depth in the references

where the topic is covered in detail