Architecture decision records
Capture significant decisions in short, immutable records so the reasoning survives team changes.
12 min readWhy decisions get lost
Six months after a decision, nobody remembers why the team chose Postgres over DynamoDB, or why the payments service calls fraud synchronously. New engineers either repeat the debate or reverse the decision without knowing the constraint that drove it. An Architecture Decision Record (ADR), popularised by Michael Nygard, is a one to two page document that captures one decision, its context and its consequences. It is cheap to write and pays off every time someone asks 'why is it like this?'
A template that works
Keep ADRs short and consistent. Number them sequentially and store them in the repository next to the code they affect (for example docs/adr/0007-use-outbox-for-order-events.md) so they are reviewed in pull requests like code.
- Title: a short imperative phrase, e.g. 'Use the outbox pattern for order events'
- Status: Proposed, Accepted, Deprecated or Superseded by ADR-0012
- Context: the forces at play, constraints, numbers and what triggered the decision
- Options considered: two to four, each with its main pros and cons
- Decision: what we will do, in one or two sentences
- Consequences: what becomes easier, what becomes harder, follow-up work
Rules for a healthy decision log
ADRs are immutable once accepted. If you change your mind, write a new ADR that supersedes the old one and link both ways; the history of changing minds is itself valuable. Write an ADR whenever a decision is hard to reverse, affects more than one team, or was contentious. Do not write them for every library choice or you will drown the signal. A healthy team produces roughly one to four ADRs per month, not one per pull request.
Making them discoverable
A decision log nobody reads is just bureaucracy. Link ADRs from the service README, from design docs and from the code comments at the exact spot where the decision shows (for example, a comment above the outbox table pointing to ADR-0007). Review the index quarterly and mark outdated decisions as deprecated. On the SystCode canvas, the notes you leave on a component play the same role: a reviewer should see not only what you chose but why. Add the ADR index to onboarding for new engineers.
Key takeaways
- An ADR captures one significant decision with its context, options and consequences.
- Store ADRs in the repo, number them, and never edit an accepted one: supersede it instead.
- Write ADRs for decisions that are hard to reverse, cross-team or contentious, not for every choice.
- Link ADRs from the code and docs where the decision is visible so they are actually found.
Sign in to track lessons and earn badges.