Architecture Decision
Write an ADR when the choice is not obvious, is expensive to reverse, or will be
questioned later. Do not write one for a choice with an obvious default; that is
paperwork, and it dilutes the record.
Decide whether it needs one
| Write an ADR |
Skip it |
| Two defensible options with different consequences |
One option, obvious default |
| Expensive or slow to reverse |
Cheap to change next week |
| Constrains future work |
Local to one function |
| Deviates from a convention in this repository |
Follows the existing pattern |
| Someone will ask why in six months |
Nobody will ever ask |
Process
State the decision as a question. "Which queue?" is a question. "Use Kafka" is an
answer looking for justification, and it will find one.
Establish the forces. What is actually in tension: throughput against operational
cost, consistency against latency, today's simplicity against tomorrow's migration.
If you cannot name a tension, there is no decision here, only a default.
Constrain by what is true here. Team size and operational capacity, existing
infrastructure, real data volume, latency and durability requirements, cost, compliance.
Most technology debates dissolve once the actual numbers are on the table.
List real options, including "do nothing" and "use what we already run". Options
nobody would choose do not belong; a straw man makes the record worthless.
Compare on the axes that distinguish them. Not a feature matrix. Two options that
score the same on nine axes and differ on the tenth are decided by the tenth.
Decide. Then write the rejected option's strongest argument fairly, because that is
the argument someone will make again later.
Write the consequences, including what becomes hard.
Write the revisit condition as an observable trigger, not a date.
Format
# ADR <n>: <the decision>
- **Status:** proposed | accepted | superseded by ADR <n>
- **Date:** <YYYY-MM-DD>
- **Deciders:** <who>
## Context
<the forces; what is true here that makes this a decision rather than a default>
## Constraints
<the numbers and limits that actually narrow the field>
## Options
### A. <name>
<what it is; the trade-off that distinguishes it>
### B. <name>
## Decision
<what will be done, stated as a decision>
## Rejected
<the losing option and its strongest argument>
## Consequences
- Becomes easy:
- Becomes hard:
- Becomes expensive to reverse:
## Revisit when
<observable condition>
Reviewing someone else's design
Ask, in order:
- What breaks first as this grows? At what number?
- What happens when each dependency is slow, then unavailable?
- Where is the state, and who owns it? Two owners is the bug.
- What is the migration path from what exists today?
- What is the simplest thing that would work, and what does this buy over it?
- How is it observed, and how is it rolled back?
Question five is the one that most often changes the design. Ask it even when the design
is good.
Verification
- The decision is stated as a decision, not a preference or a comparison.
- Constraints include real numbers, not adjectives.
- The rejected option's best argument is written down fairly.
- Consequences include what becomes hard, not only what becomes easy.
- The revisit condition is observable.
Red flags
| Thought |
Reality |
| "Everyone uses this, so it is right" |
For their constraints. Write yours down and check. |
| "We might need that scale later" |
Design for the scale you can measure, plus a migration path. |
| "I'll list the options and decide later" |
Later has less context and more pressure. Decide now. |
| "The trade-offs are obvious" |
Then the ADR takes five minutes. Write it; the reader in six months is not you. |
| "This is the modern approach" |
Modern is not a force. Name the tension it resolves. |
| "We can always change it" |
Then it may not need an ADR. If you cannot, that is exactly why it does. |
1---2name: architecture-decision3description: Records a non-obvious technical choice as an ADR with context, options, the decision, consequences, and the condition that should reopen it. Use when choosing between technologies or designs, when a decision is expensive to reverse, or when someone will ask in six months why it was done this way. Also use to review a proposed design.4license: MIT5---67# Architecture Decision89Write an ADR when the choice is not obvious, is expensive to reverse, or will be10questioned later. Do not write one for a choice with an obvious default; that is11paperwork, and it dilutes the record.1213## Decide whether it needs one1415| Write an ADR | Skip it |16|--------------|---------|17| Two defensible options with different consequences | One option, obvious default |18| Expensive or slow to reverse | Cheap to change next week |19| Constrains future work | Local to one function |20| Deviates from a convention in this repository | Follows the existing pattern |21| Someone will ask why in six months | Nobody will ever ask |2223## Process24251. **State the decision as a question.** "Which queue?" is a question. "Use Kafka" is an26 answer looking for justification, and it will find one.27282. **Establish the forces.** What is actually in tension: throughput against operational29 cost, consistency against latency, today's simplicity against tomorrow's migration.30 If you cannot name a tension, there is no decision here, only a default.31323. **Constrain by what is true here.** Team size and operational capacity, existing33 infrastructure, real data volume, latency and durability requirements, cost, compliance.34 Most technology debates dissolve once the actual numbers are on the table.35364. **List real options,** including "do nothing" and "use what we already run". Options37 nobody would choose do not belong; a straw man makes the record worthless.38395. **Compare on the axes that distinguish them.** Not a feature matrix. Two options that40 score the same on nine axes and differ on the tenth are decided by the tenth.41426. **Decide.** Then write the rejected option's strongest argument fairly, because that is43 the argument someone will make again later.44457. **Write the consequences,** including what becomes hard.46478. **Write the revisit condition** as an observable trigger, not a date.4849## Format5051```markdown52# ADR <n>: <the decision>5354- **Status:** proposed | accepted | superseded by ADR <n>55- **Date:** <YYYY-MM-DD>56- **Deciders:** <who>5758## Context59<the forces; what is true here that makes this a decision rather than a default>6061## Constraints62<the numbers and limits that actually narrow the field>6364## Options65### A. <name>66<what it is; the trade-off that distinguishes it>67### B. <name>6869## Decision70<what will be done, stated as a decision>7172## Rejected73<the losing option and its strongest argument>7475## Consequences76- Becomes easy:77- Becomes hard:78- Becomes expensive to reverse:7980## Revisit when81<observable condition>82```8384## Reviewing someone else's design8586Ask, in order:87881. What breaks first as this grows? At what number?892. What happens when each dependency is slow, then unavailable?903. Where is the state, and who owns it? Two owners is the bug.914. What is the migration path from what exists today?925. What is the simplest thing that would work, and what does this buy over it?936. How is it observed, and how is it rolled back?9495Question five is the one that most often changes the design. Ask it even when the design96is good.9798## Verification99100- The decision is stated as a decision, not a preference or a comparison.101- Constraints include real numbers, not adjectives.102- The rejected option's best argument is written down fairly.103- Consequences include what becomes hard, not only what becomes easy.104- The revisit condition is observable.105106## Red flags107108| Thought | Reality |109|---------|---------|110| "Everyone uses this, so it is right" | For their constraints. Write yours down and check. |111| "We might need that scale later" | Design for the scale you can measure, plus a migration path. |112| "I'll list the options and decide later" | Later has less context and more pressure. Decide now. |113| "The trade-offs are obvious" | Then the ADR takes five minutes. Write it; the reader in six months is not you. |114| "This is the modern approach" | Modern is not a force. Name the tension it resolves. |115| "We can always change it" | Then it may not need an ADR. If you cannot, that is exactly why it does. |