Skip to the workspace
Pebellslearn by building
Important Skills to Learn  ›  Lesson

Decision Making and ADRs

Decision Making 15 minArchitects make decisions by comparing real options against the forces at play, and record each significant one in a short Architecture Decision Record.

software architect / Decision Making and ADRs

Explore each scene at your own pace.

01 · The rule

The rule

Decision Making and ADRs

A DabbaGo engineer finds that kitchen payouts go through a slow nightly batch instead of paying each kitchen right away. It looks like a mistake, so she spends a week making it real-time. Then finance explains: the bank charges a fee per transfer, so one batch a night saves lakhs of rupees a year. The original reason was never written down. A decision without its reason is a trap waiting for the next person.

The rule

Compare real options, choose one, and write down why.

Good architectural decisions share three habits:

  • Real options. At least two genuine alternatives, including "do nothing" when it is honest. A decision with one option was never really a decision.
  • Forces. The pressures that make the choice hard: quality attribute scenarios, deadlines, budget, team skills, rules. Options are judged against forces, not against taste.
  • A record. The decision, its context and its consequences, written where the team will find it.

The standard record is an Architecture Decision Record (ADR): a short file, often kept in the repository next to the code. A common shape:

ADR 12: Pay kitchens in one nightly batch

Status: Accepted

Context:
The bank charges a fee on every transfer. 1,200 kitchens are paid daily.
Kitchens told us next-morning payment is fine.

Decision:
Pay all kitchens in one batch at 11 pm.

Consequences:
+ Transfer fees drop sharply.
- A kitchen cannot be paid instantly, even in an emergency.
- If the batch fails, every kitchen is paid late; we need an alert.

Two rules keep ADRs useful. Consequences include the downsides; an ADR that lists only benefits is a sales pitch. And accepted ADRs are not edited to reverse them. When a decision changes, write a new ADR that supersedes the old one, and mark the old one "Superseded by ADR 19". The history of why things changed is as valuable as the current state.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.