An Architecture Decision Record (ADR) is a short document that captures a single significant architectural decision: the context, the options considered, the decision made and its consequences.

Good architecture favours working software over comprehensive documentation (see the introduction), but some things are worth writing down. The most valuable piece of architectural documentation is often not a diagram of what the system looks like, which is visible in the code and the cloud console, but a record of why it looks that way. Six months later, nobody remembers why the team chose a queue over a direct API call, or why one service runs on containers when everything else is serverless.

ADRs, popularised by Michael Nygard, solve this with a habit rather than a heavyweight process.

What goes in an ADR

Keep each record short, a page at most. A common structure is:

Optionally, list the alternatives considered and why they were rejected. That’s often the part future readers find most useful.

An architecture decision record and its lifecycleADR-007: Use managedcontainer hostingStatusContextDecisionConsequencesProposedAcceptedSupersededby ADR-012RejectedDeprecatedNever rewrite history: write a new ADR
A short record per decision, with a simple lifecycle. When a decision changes, a new record supersedes the old one.

Example

ADR-007: Use managed container hosting for the reporting service

Status: Accepted

Context: The rest of the platform is serverless. Report generation needs a third-party rendering library that requires a full OS environment, and jobs can run for up to 30 minutes, beyond our function timeout. A spike confirmed the library works in a container image.

Decision: Run the reporting service as a serverless container, triggered from the existing job queue.

Consequences: We now maintain a container image and must rebuild it regularly for security patches. Reporting can scale independently. If the library becomes available as a managed service, we will revisit this decision.

Good practice