LiveFor architects & tech leads

Architecture Decision Record (ADR) Generator

A structured form for context, options, decision and consequences that outputs a clean Markdown ADR for Git repos, Confluence or SharePoint.

Runs in your browser. Your data never leaves this device.
~/apps/adr-generatorruns in your browser · nothing uploaded
Short, starting with a verb: “Use…”, “Adopt…”, “Retire…”
 
 
Status
 
 
What’s happening, what constraints apply, and why decide now?
One per line
Options considered: pick the chosen one
Option 1
Option 2
Option 3
The one or two reasons that tipped it
One per line
One per line
Related ADRs, tickets, docs. One per line
ADR-0007 is 100% completeEverything a reviewer looks for is there.
Format
0007-use-postgresql-for-the-order-service.md
---
status: accepted
date: 2026-12-04
decision-makers: Platform architecture group
---

# ADR-0007: Use PostgreSQL for the order service

## Context and problem statement

The order service is moving off the shared SQL Server cluster, which is being retired in Q3. It needs transactional consistency for orders and payments, and the team wants a managed service on AWS.

## Decision drivers

- Strong consistency for order and payment writes
- Managed service with automated backups and point-in-time restore
- No per-core licensing
- Team already runs PostgreSQL elsewhere

## Considered options

- Amazon RDS for PostgreSQL
- Amazon Aurora PostgreSQL
- Amazon DynamoDB

## Decision outcome

Chosen option: **Amazon RDS for PostgreSQL**, because RDS for PostgreSQL meets every driver at the lowest cost and risk. Aurora’s faster failover doesn’t justify the extra cost for a service with a 1-hour RTO.

### Consequences

- Good, because removes SQL Server licensing for this service
- Good, because reuses existing runbooks and monitoring
- Bad, because need to migrate stored procedures (about 40)
- Bad, because write throughput limited to one instance; revisit above 5,000 orders a minute

## Pros and cons of the options

### Amazon RDS for PostgreSQL

- Good, because mature, managed, no licence cost
- Good, because team skills already exist
- Bad, because vertical scaling only for writes

### Amazon Aurora PostgreSQL

- Good, because faster failover, storage auto-scales
- Bad, because higher cost at our size
- Bad, because I/O pricing harder to predict

### Amazon DynamoDB

- Good, because scales without limit, serverless
- Bad, because data model change for relational order data
- Bad, because no team experience

## More information

- ADR-0003 Move workloads off the shared SQL cluster
- https://aws.amazon.com/rds/postgresql/

Your draft is saved in this browser only, so you can come back to it. It is never uploaded. Save the file as docs/adr/0007-use-postgresql-for-the-order-service.md next to the code it’s about.

What it does

  • MADR or classicOutputs MADR 4 (with front matter and pros and cons) or the original Nygard format.
  • Prompts for the hard partsA completeness check flags missing context, single-option decisions and decisions with no downsides.
  • Git-ready file namesNumbers and names files like 0007-use-postgresql-for-the-order-service.md.
  • Drafts stay privateYour draft is kept in this browser only, so you can come back to it later.

How to use it

  1. Give the decision a short title and number
  2. Describe the context and drivers

    Why the decision is needed now and what matters most.

  3. Add at least two options with pros and cons, and pick one
  4. Record the reason and the trade-offs, then download the Markdown

Questions people ask

What is an Architecture Decision Record?

A short document that captures one significant technical decision: the context, the options considered, what was chosen and why, and the consequences. Kept with the code, ADRs explain why the system is the way it is.

MADR or Nygard format?

Michael Nygard’s original format is short: context, decision, consequences. MADR adds decision drivers and the pros and cons of each option, which suits decisions with real alternatives.

Can I change an accepted ADR?

Treat accepted ADRs as a record. To change a decision, write a new ADR that supersedes the old one and update the old one’s status to Superseded.

Last updated 4 Dec 2026 · More in Architecture & Design

More Architecture & Design tools

See all →
Your product here. Reach IT engineers and architects who use these tools.Advertise →