Decision Record Builder

Write an architecture decision record in two minutes. Free, runs in your browser, nothing is sent to us.

Decision
Options
Outcome
Markdown
# ADR-001: Move background jobs from cron to a queue

- **Status:** Accepted
- **Date:** YYYY-MM-DD
- **Deciders:** Platform team
- **Related:** PR #412, #infra thread, INC-23

## Context

The nightly billing run now takes over 40 minutes and cron jobs time out. A retry bug double-charged some customers.

## Options considered

1. **Job queue with idempotency keys**
   - Pros: Retries are safe; scales with load
   - Cons: New infrastructure to run
2. **Longer cron timeouts**
   - Pros: No new infrastructure
   - Cons: Doesn't fix duplicate charges

## Decision

Adopt a job queue with idempotency keys for all billing jobs.

## Consequences

Retries become safe. We now operate a queue. Revisit after one quarter of billing runs.

Decision records only help if people can find them later. std::nous links ADRs to the pull requests and threads around them, so the reasoning shows up when someone asks why.