# Architecture decision record example and guide

> Write an architecture decision record with the choice, alternatives, constraints and reasons to revisit it. Work through a customer statement example.

Source: https://cueapril.com/knowledge/how-to/write-an-architecture-decision-record
Updated: 2026-12-02
Index: https://cueapril.com/llms.txt

## What belongs in an architecture decision record?

An architecture decision record (ADR) explains one significant choice, the constraints behind it, the alternatives considered and the consequences the team accepts. Keep it with the code so a future engineer can see what would justify revisiting the decision.

## Start with the choice someone might question later

Write the decision in a sentence. If it only describes the implementation, explain which credible alternative the team passed over and why it would matter to choose differently.

1. Name the design question and its status. Record the operational or user constraint that makes it important.
2. Describe the viable options. For each, identify a cost or consequence specific to this system.
3. Record the choice, its downside and an observation that would justify reconsideration. Number the record in the repository. Link a superseding record if the decision later changes.

## Make an assumption observable

A sentence such as “requests are small” can become stale without anyone noticing. Give the reader a way to test it. A size distribution, a compatibility check or a recovery exercise can show when the original decision stops fitting.

## Worked example: Decide how to generate a customer statement

A team chooses to generate a statement during the request because today's statements cover a single month and fit within its response-time budget. A background job would need a status screen and retry handling. The ADR records long reporting periods as a reason to revisit the choice. The PR adds a check using the largest supported month and documents which timing data to inspect.

Adapted by Cue April from The Engineering Handbook v1.0.0 by Tenhaw (© 2026 Tenhaw LTD). The examples and pull request checks are Cue April adaptations.

[Tenhaw on architecture decision records](https://github.com/Tenhaw/engineering-handbook/blob/10d618fde978727e419a524606f351721b0b1d23/02-architecture.md#architecture-decision-records-adrs) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

## Try it on your pull request

On your own PR, take one assumption from the design decision and identify a check that would fail if it stopped being true.

[Try Cue April on your repository](https://app.cueapril.com/sign-up/?next=%2Fquality-start)

Create an account, connect your repository and review the test plan.

## Related reading

- [When to choose a modular monolith or microservices](https://cueapril.com/knowledge/explanations/modular-monolith-or-microservices)

- [What p95 latency tells you about a slow service](https://cueapril.com/knowledge/explanations/p95-latency-explained)

- [How to write a risk brief for a change](https://cueapril.com/knowledge/how-to/write-a-risk-brief)

[Browse the Knowledge base](https://cueapril.com/knowledge)
