Skip to content

Esta página también está disponible en español.

Ver en español
Custom Software Development

Architecture Decision Records (ADRs): Documenting Technical Decisions

Teams forget why decisions were made. Architecture decision records capture the context, options and reasons in a short document. Here's how to write one.

Super Admin · · 2 min read

Architecture Decision Records (ADRs): Documenting Technical Decisions

Short answer: An architecture decision record (ADR) is a short document that captures one significant technical decision: the context, the options considered, the decision made and its consequences. ADRs help future team members, clients and maintainers understand why the system is built the way it is, without relying on memory.

Why ADRs are useful

  • New developers understand the system faster
  • Old debates aren't repeated without new information
  • Clients and stakeholders can see the reasoning behind costs and constraints
  • Revisiting a decision is easier when its original assumptions are recorded

What counts as an architectural decision?

Decisions that are costly to change or affect many parts of the system, for example:

  • Choosing a database or framework
  • Monolith or separate services
  • Tenancy model for a SaaS product
  • Authentication approach
  • Hosting platform

A simple template

# ADR-007: [Decision title]

Status: Proposed | Accepted | Superseded by ADR-012
Date: YYYY-MM-DD

## Context
What situation or problem requires a decision? What constraints apply?

## Options considered
1. Option A: pros and cons
2. Option B: pros and cons

## Decision
What we decided and why.

## Consequences
What becomes easier or harder as a result? What follow-up work is needed?

Example ADR

# ADR-004: Use a shared database with tenant_id for the SaaS platform

Status: Accepted
Date: 2026-03-02

## Context
The platform will serve many small businesses. The team is small and
needs simple operations. Two prospective customers may require data
in a specific region in future.

## Options considered
1. Shared database, tenant_id on each table: simplest; isolation
   enforced in code.
2. Schema per tenant: stronger separation; more complex migrations.
3. Database per tenant: strongest isolation; highest operating cost.

## Decision
Option 1, with automatic tenant scoping in the data layer and automated
tests that attempt cross-tenant access.

## Consequences
- Lower hosting and operations cost.
- Isolation depends on application code; scoping must be reviewed.
- A dedicated-database option will be designed if a regional
  requirement becomes contractual (see future ADR).

Good practices

  • Keep ADRs short; one decision per record
  • Store them in the code repository, near the code
  • Never edit an accepted ADR's decision; write a new one that supersedes it
  • Write them when the decision is made, not months later

Frequently asked questions

Do small projects need ADRs? Even a handful of ADRs for the biggest decisions is valuable on small projects.

Who writes them? Usually the technical lead, with input from the team and, where relevant, the client.

Next steps

Write ADRs for the three most important decisions in your current system. CodeFoTech documents key decisions in every custom software project.

Was this article helpful? Thanks for your feedback.

Keep reading

Related articles

Ready to build or scale your product?

Talk to our experts about software development, dedicated teams, and long-term partnerships.

Start a Project