IICTPIICTP

Blog / Cloud & Architecture / System Design & Architecture

System Design & ArchitectureNovember 20, 20264 MIN READ

What is an architecture decision record (ADR), and how do you write one?

An architecture decision record is a short document that captures one significant technical decision: the situation, what was decided, and what follows from it. Kept next to the code, a set of ADRs tells future engineers not just what the system looks like but why.

In this post
  1. What goes in an ADR?
  2. Which decisions deserve one?
  3. Where should ADRs live?
  4. What happens when a decision changes?
  5. How do you keep the habit going?
  6. Sources and further reading

What goes in an ADR?

Michael Nygard’s widely used format has a title, a status such as proposed, accepted or superseded, the context that forced the decision, the decision itself, and its consequences, good and bad. Many teams add the options they considered and why they were rejected. One or two pages is enough.

Which decisions deserve one?

Those that are expensive to undo or that someone will later question: choosing a database, splitting a service, adopting a framework, changing how authentication works. A useful test is whether a new team member would ask “why did we do it this way?”.

Where should ADRs live?

In the repository the decision affects, in a folder such as docs/adr, numbered in order. They are reviewed in pull requests like code, versioned with it, and found by the people who change it.

What happens when a decision changes?

Do not edit the old record. Write a new ADR that supersedes it, and mark the old one as superseded with a link. The history of changed decisions is itself useful, because it shows what the team learned.

How do you keep the habit going?

Make writing an ADR part of the work, not a separate task: draft it when the decision is being discussed, use it as the agenda for the review, and link it from the pull request that implements it. Short, plain records get written; long templates get skipped.

Sources and further reading

  1. Nygard, M. Documenting Architecture Decisions. Cognitect blog, 2011.
  2. Keeling, M. Design It! From Programmer to Software Architect. Pragmatic Bookshelf, 2017.

Go deeper: CTP™ credential · the TPBOK™ standard · Check your experience

IICTP is an independent technical credentialing body.

Keep reading

← All posts

Where do you stand?

Find the credential that fits the work you do.