Architecture doc template
The architecture doc says how the system will meet the PRD and the UX spec: what the parts are, what data they own, how they talk, and why you chose this design over the alternatives.
The architecture doc says how the system will meet the PRD and the UX spec: what the parts are, what data they own, how they talk, and why you chose this design over the alternatives.
# Architecture · <system> ## Context What talks to what. A diagram helps. ## Components Responsibility, which data it owns, how it scales. ## Data model Entities, key fields, relationships, retention. ## APIs Endpoints or events, request and response shape, errors, auth. ## Non-functional How each NFR from the PRD is met, with numbers. ## Security & privacy Auth, permissions, PII, audit. ## Decisions ADR style: decision, options considered, why. ## Risks Each with likelihood, impact, mitigation. ## Open questions
Once the PRD and UX spec are approved, before stories are estimated. The architecture is where hidden work shows up: a migration, a new queue, a dependency on another team.
upload_rows.products.sku; 1,000 rows took 2.1 s on staging.Match on the server, not in the browser. Options: parse in the browser and send rows; parse on the server. Chose the server: one implementation for .xlsx and .csv, and suggestions need the full catalogue.
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Customers use their own SKUs | Medium | High | A per-account SKU map, behind FR-2's suggestions |
In Releavo this lives at docs/architecture.md. Releavo drafts it from the docs before it and your team's conversations; every edit is a draft until the tech lead approves it, and approved versions are never overwritten.