The concept Write down why
Two experienced engineers can agree on the problem and still disagree on the implementation. An Architecture Decision Record (ADR) is a short document that records an important decision and its reasoning: the context, the problem, the options, the decision, the reasons, the trade-offs and the consequences. It tells future engineers why the system is the way it is.
Worked example ADR-001: duplicate-effect prevention
adrADR-001 (sample)
ADR-001: Payment event duplicate-effect prevention
Status: Proposed
Context
The integration service may receive the same provider event more than
once. The current path has no verified atomic protection against
repeated financial effects.
Problem
Repeated delivery must not cause duplicate financial posting.
Options considered
1. Ignore repeats using in-memory application state.
2. Keep durable event-processing records with transactional safeguards.
3. Rely only on the message broker's delivery guarantees.
Decision
Use a durable idempotency mechanism inside the business transaction,
with concurrency protection.
Reasoning
- In-memory state is lost on restart and not shared across instances.
- Broker delivery alone does not make business effects happen once.
- Durable state supports recovery and auditing.
Consequences
- New persistent state; event identity and retention must be defined.
- Processing and recovery must be tested.
- Monitoring must show repeated deliveries.Worksheet
Your ADR
Write the ADR for your own next decision, or redo ADR-001 in your own words. Keep the options you rejected and why; that is the part people need most a year later. Answers stay in this browser; Download CSV saves them.
| Section | Your ADR |
|---|---|
| Number and title | |
| Status | |
| Context | |
| Problem | |
| Options considered | |
| Decision | |
| Reasoning | |
| Consequences |
Worked example API or asynchronous processing?
| Section | Content |
|---|---|
| Context | Payment ingestion must accept events while loan servicing is sometimes unavailable |
| Options | Synchronous downstream API; asynchronous queue processing; hybrid acceptance then asynchronous processing |
| Decision | Hybrid, if the business accepts that an event is accepted after validation and durable recording, and posted later |
| Reasoning | Ingestion stays responsive; short outages do not reject payments; failures retry under policy; status is tracked |
| Consequences | Accepted is not posted; a processing-status model, duplicate handling, recovery and visibility of pending work are required |
Good practice Record rejected alternatives and status
Explain what you rejected, and why. For example: Kafka was not selected for this initial workflow because the current workload and integration needs can be met by a managed queue, and the organization does not yet need stream processing. That does not make Kafka worse; it was not justified for this problem.
| Status | Meaning |
|---|---|
| Proposed | Written but not yet approved |
| Accepted | Reviewed and agreed |
| Rejected | Considered and not chosen |
| Superseded | Replaced by a newer decision; the history stays useful |
Practice Write ADR-003
Practical exercise
Rules-based matching versus AI-assisted investigation
Write a short ADR using the seven sections.
- Context, problem and at least two options.
- Decision, reasoning, consequences and status.
Show a sample ADR
- Context: matching must be exact and auditable; analysts spend time reading scattered notes.
- Problem: where, if anywhere, should AI be used in reconciliation?
- Options: an LLM matches records; rules match and an optional LLM summarizes evidence; no AI.
- Decision: rules for matching; an optional LLM summarizes approved evidence for analysts, advisory only.
- Reasoning: matching needs deterministic, testable results; summaries help people without making decisions.
- Consequences: define evaluation data, grounding checks, access control and cost monitoring for the summaries.
- Status: proposed.
3 questions
Check your understanding
What you can do now
- Explain what an ADR is and why it matters.
- Write an ADR with all seven sections.
- Record rejected options and statuses.