A technical decision record moves from context and options to a documented decision and consequences on a developer's desk

Teams rarely forget what they built. They forget why they built it that way. Six months later, a new developer opens a config file, sees a queue or a strange caching rule, and asks why it is not just a direct HTTP call. Nobody remembers the exact constraints, so everyone ends up digging through old Slack threads, pull request comments, and half-remembered standup notes.

A Technical Decision Record—usually called an Architecture Decision Record (ADR)—exists to stop that archaeology. It is a short, plain-text document that captures the reasoning behind a meaningful choice while the context is still fresh. It is not a full system design spec, and it is definitely not a meeting transcript. Its job is to let someone who was not in the room understand the boundaries before they change the code.

Scope an ADR to one decision

An ADR works best when it answers a single, concrete question: “Why do we offload invoice PDF generation to a background worker instead of returning it synchronously?” or “Why is this marketing site built as static HTML rather than served from a CMS runtime?”

It is not a project plan with owners and deadlines, and it is not carved in stone. When constraints change, you do not silently rewrite history—you add a new ADR that marks the old one as Superseded by ADR-0008. Keeping one decision per file also makes it easy to link directly from a README.md, a Terraform module, or a code comment when explaining a non-obvious constraint.

What actually belongs in the document

Long ADR templates fail because nobody wants to fill out twelve sections after a busy sprint. In practice, five focused parts are enough to make a record useful six months later.

Context and constraints

Describe the problem and the hard limits forcing a choice today. Mention real numbers and operational realities: request timeouts, team size, hosting budget, compliance rules, or legacy dependencies. Skip the three-paragraph company backstory. If a static site needs to deploy cleanly from a single main branch because non-developers review the preview build, state that constraint upfront.

Realistic options considered

List the two or three viable paths you actually weighed, including “keep the current setup” if you are replacing something. You do not need to list every brainstormed idea. Briefly note why each rejected option fell short against your constraints—whether it added a database you did not want to operate, exceeded the budget, or required too much custom glue code.

The decision and its boundaries

State the outcome directly using active language: “We will use…” rather than “It was decided that…”. Be explicit about scope and conditions. “Use a background queue for jobs that exceed a 5-second request budget; keep form validation synchronous” is actionable. “Use a queue for performance” is not.

Consequences and operational cost

Every choice trades one problem for another, and pretending otherwise destroys trust in the document. If you introduce a message queue to protect web request latency, note that the team now owns retry policies, dead-letter handling, and eventual consistency in the UI. If you adopt static builds, note that content editors now wait for a build step instead of seeing instant saves.

Review trigger

Write down the condition that would make this decision worth revisiting—a traffic threshold, a multi-region requirement, or a new compliance rule. Avoid inventing arbitrary calendar dates like “review in Q4” unless there is an actual event tied to that date.

A template you can drop into docs/adr/

Store ADRs right inside the repository (for example, docs/adr/0004-async-invoice-pdf-generation.md) so they live alongside the code they govern and go through the same pull request review. Here is what a complete, readable ADR looks like in practice:

# ADR-0004: Generate Invoice PDFs Asynchronously via Background Worker

- **Status:** Accepted
- **Date:** 2026-11-07
- **Deciders:** Backend & Ops

## Context
Generating multi-page PDF invoices with embedded fonts takes 3–8 seconds under load.
Our reverse proxy enforces a 15-second upstream timeout, and holding ASP.NET Core
worker threads during peak billing runs has caused thread-pool starvation.

## Options Considered
1. **Keep synchronous generation behind a higher proxy timeout.** Simple, but still
   blocks request threads and risks browser timeouts on slow mobile connections.
2. **Offload PDF rendering to a background job queue (Hangfire/Redis).** Adds queue
   monitoring and polling/email delivery, but keeps HTTP requests under 200 ms.
3. **External serverless PDF API.** Removes local CPU load, but sends customer PII
   to a third-party vendor we have not cleared with compliance.

## Decision
We will render invoice PDFs asynchronously using our existing background worker queue
and notify the user via email and a downloadable link once ready. Synchronous PDF
generation remains only for single-page admin previews.

## Consequences
- **Positive:** API latency stays predictable during end-of-month billing spikes.
- **Negative:** UI must show a "Generating..." state; ops must monitor failed-job alerts.

## Review Trigger
Revisit if PDF volume grows large enough to starve other background jobs, at which
point we will split PDF rendering onto a dedicated worker pool.

Mistakes that kill ADR adoption

The fastest way to make ADRs useless is to write only the final decision without the rejected options. Without knowing what was ruled out—and why—the next engineer cannot tell whether a constraint was deliberate or accidental.

Equally harmful is turning the record into a diary of meeting arguments, or presenting unmeasured guesses as facts. If you expect a caching layer to cut database CPU in half, write that it is an expectation and note how you will verify it after deployment. Finally, never leave a decision buried in a private chat or an unlinked wiki page; put it in version control, link it in the relevant service README, and ask the people who will operate the system—support, security, or ops—to review the consequences before merging.

For related guides that complement this checklist, see:

The best decision record is short enough to read in two minutes before a code review. Write it for the developer who inherits the system six months from now, not for the meeting that produced it, and you turn recurring “Why is it built like this?” debates into a two-minute lookup.

Sources