Product engineering

Create a Small Architecture Decision Record

Write a compact architecture decision record that preserves context, plausible alternatives, evidence, tradeoffs and conditions for review.

An architecture decision record preserves why a team chose one approach over plausible alternatives. It is most useful when a future engineer can understand the constraints without replaying old meetings. The record should be small enough to write during normal work and specific enough to explain a consequential choice.

AWS guidance on architecture decision records describes an ADR process and the lifecycle of decisions. The practical method below uses that idea for a compact engineering record. It does not require a large governance program or a separate document for every implementation detail.

Choose a decision worth preserving

Write an ADR when the choice affects structure, integration, operational responsibility or a constraint that will be expensive to rediscover. Selecting a persistence model, introducing an asynchronous boundary or choosing an authentication approach may qualify. Renaming a local variable usually does not.

For a fictional reporting product, the team might decide whether to generate exports inside the request or through a background job. The choice affects response time, status reporting, retries and operations. That makes the reasoning valuable beyond the immediate code change.

Avoid creating a record merely to justify a choice after all meaningful discussion has ended. The document is more useful when it helps the team compare options before commitment, then records the actual decision and its consequences.

State the decision in one sentence

Begin with a short title and a sentence that identifies the choice. “Process large report exports asynchronously using a durable job record” is clearer than “Export architecture improvements.” The reader should know what was decided before encountering the supporting detail.

Keep the scope bounded. If the team is also choosing a queue vendor, storage format and notification mechanism, decide whether those belong in the same record or separate related records. Combine them only when the reasoning is inseparable.

Include a status such as proposed, accepted or superseded according to the team’s convention. A draft should not look like an approved instruction. Record the date and responsible team so readers can locate the context and the people who own the current decision.

Describe the problem and constraints

Explain the situation that made a decision necessary. Use observable conditions: requests exceeding a practical duration, a dependency requiring retries or a workflow that needs completion status. Avoid framing the problem solely as a desire to adopt a particular technology.

List the constraints that materially shape the options. These might include deployment environment, team experience, data-handling requirements or compatibility with an existing client. Distinguish hard constraints from preferences that could change with sufficient benefit.

For the export example, a hard requirement might be preserving accepted work across a process restart. A preference might be minimizing new operational components. The record should not treat those two statements as equally negotiable, because they lead to different tradeoffs.

Record the alternatives that were genuinely considered

Include a small number of plausible options, including retaining the current approach when appropriate. Explain each option well enough to compare its effect on the problem. A straw-man alternative makes the decision look stronger while teaching future readers very little.

Do not list every product in a category unless the team actually evaluated it. The purpose is to preserve reasoning, not create a market survey. If a separate evaluation contains detailed evidence, link it and summarize only the findings relevant to the decision.

For each option, describe benefits, costs and unresolved questions. A background job may improve request handling but introduce status management and recovery work. A synchronous path may be simpler but fail the duration or durability requirement. Balanced descriptions make the final choice credible.

Separate evidence from assumptions

Identify which claims come from documentation, measurements, a prototype or team experience. If the team has not tested a throughput estimate, label it as an assumption. A precise number without a source can become an accidental requirement that later engineers are reluctant to question.

Use a small prototype when it can resolve a consequential uncertainty cheaply. Record what the prototype actually tested and its limitations. A demonstration with a tiny dataset does not establish production performance, but it may prove that an integration path is feasible.

Keep external references close to the claim they support. Product documentation can establish a supported feature; it does not prove the team’s implementation will satisfy its service objective. The ADR should preserve that boundary rather than treating vendor capability as completed engineering evidence.

Explain why the chosen option fits now

Connect the decision directly to the constraints and evidence. Describe why its benefits matter more than the alternatives’ benefits in the current context. Avoid generic praise such as scalable, modern or robust unless the record explains the concrete behavior behind the word.

A useful explanation might say that asynchronous processing preserves accepted exports through worker restarts and lets the API return a durable status reference. It should also acknowledge that the team must operate job retries, output storage and cleanup.

The phrase fits now is important. Architecture choices depend on context. The record should make it possible to understand why a later team might reasonably choose differently without portraying the earlier decision as irrational or the new one as disloyal.

Make consequences operational

List the work the decision creates. Who will monitor the new component? What runbook or recovery path is needed? Which tests must cover the new boundary? An architecture decision is incomplete if it describes only the code shape and ignores the people who will operate it.

For the export service, consequences may include a job status resource, limits on input size, a failed-job review process and a retention policy for output files. These are not incidental details; they follow from the selected asynchronous model.

Distinguish required follow-up from optional improvement. Assign owners or link tracked work for requirements that must exist before release. Do not allow the ADR to become a place where necessary tasks are recorded but never enter the team’s execution process.

Define what would justify revisiting the decision

Identify changes that could invalidate the reasoning. Growth in workload, a new compliance requirement, a different operating model or an unavailable dependency may warrant review. A decision trigger is more useful than a vague statement that the architecture should be reconsidered someday.

Use observable thresholds only when the team can support them. If no defensible numerical boundary exists, state the qualitative condition and the evidence needed. For example, review the choice when queue delay prevents the agreed export completion objective despite the supported capacity controls.

Avoid building a permanent review burden around every ADR. Revisit when context changes or evidence contradicts an assumption. The record is a memory aid and decision tool, not a recurring ceremony that consumes time without a live question.

Review with the people affected

Include implementers, operators and relevant consumers of the interface. Different perspectives reveal consequences that a single architecture discussion may miss. A client team may identify an unusable status model, while operations may notice an unowned recovery dependency.

Keep feedback focused on the decision and its evidence. Editorial corrections are useful, but the main review should ask whether the options are fairly represented, the constraints are accurate and the consequences are accepted.

Record unresolved disagreement honestly. A team can make a decision without unanimous preference, but the record should preserve material concerns and the reason the chosen tradeoff was accepted. Do not convert a contested assumption into an established fact merely to make the document look tidy.

Keep accepted records stable

After acceptance, preserve the decision as a historical record. Correct factual mistakes or broken links in a traceable way, but do not silently rewrite the original reasoning to match later events. That destroys the context the ADR was intended to retain.

When a decision changes materially, create a new record that supersedes the old one and link them in both directions where practical. Explain what changed in the context or evidence. The old record can remain useful for understanding legacy behavior and migration constraints.

Use stable identifiers and a simple index. Readers should be able to find the relevant decision from the repository or system documentation. A collection of well-written records is less valuable if nobody knows it exists or which record is current.

Use a compact template without filling it mechanically

A practical template can contain title, status, context, options, decision, consequences and revisit conditions. The headings are prompts, not a requirement to produce a long essay. A straightforward decision may fit in a few paragraphs with links to supporting evidence.

Remove empty sections or explain why they do not apply. Repeated boilerplate makes meaningful content harder to find. The record should be proportional to the choice’s impact and uncertainty, not to a target page count.

Before closing the document, ask a colleague unfamiliar with the discussion to summarize the decision and its main tradeoff. If they cannot, improve the explanation. A useful ADR leaves a future team with the reasoning they need to maintain, challenge or replace the choice deliberately.

Continue reading

Choose an API Pagination Contract That Survives Growth

Keep Webhook Processing Safe When Events Arrive Twice