A system design document is a written record of what you're building, why, and how the pieces fit together. It exists so engineers, reviewers, and future maintainers can align on a design before code is written, and so the reasoning behind decisions survives staff turnover. The key condition for a useful one is scope discipline: it should cover exactly one system or a clearly bounded change, state its assumptions explicitly, and separate decisions already made from options still open. The steps below work whether you're writing a five-page proposal for a small service or a fifty-page design for a multi-team platform.

What the document is for, and what it isn't

A design document has three distinct jobs, and mixing them up is where most drafts go wrong. First, it's a decision record: it captures which approach you chose and why, so that six months later nobody re-litigates settled questions or, worse, unknowingly reverses them. Second, it's a communication tool: it lets reviewers spot flaws cheaply, before the flaws are encoded in working software. Third, it's an onboarding aid: a new engineer joining the team should be able to read it and understand the system's shape without asking five people.

What it isn't: a requirements specification (that says what the system must do; the design says how), an API reference (generated documentation belongs elsewhere), or a project plan (schedules and staffing belong in your tracker). It's also not a place to demonstrate exhaustive knowledge. A design that mentions every conceivable technology but commits to none has failed its one job, which is to support a decision.

The audience determines the depth. A design reviewed only by your immediate team can assume shared context and skip definitions. A design that crosses team boundaries or needs sign-off from security, operations, or finance must spell out assumptions those readers don't share. Write for the least-informed reviewer who has veto power, not the most-informed colleague.

Establish the problem, constraints, and scope before drafting

The most common failure mode is starting with the architecture diagram. Start instead with a short problem statement: what is broken, missing, or too expensive today, stated in observable terms. "Checkout latency exceeds two seconds at the 95th percentile during peak hours" is a problem statement. "We need to modernize checkout" is not, because nobody can tell when it's solved.

Next, list constraints as facts, not preferences. Constraints come in a few flavors: technical (the existing database is a relational engine the team operates, and migrating is out of scope), organizational (two engineers available for the quarter), regulatory (data must remain in a specific region), and contractual (a downstream consumer depends on the current message format for another year). Each constraint narrows the design space, and stating them up front prevents a reviewer from proposing an approach you already know is impossible.

Then draw the scope boundary in both directions. In scope lists the capabilities this design covers. Out of scope lists the adjacent things you are deliberately not solving, with a one-line reason each. The out-of-scope list does more work than most authors expect: it stops scope creep during review, and it tells the reader where this document's authority ends.

Finish this stage with explicit assumptions. An assumption is something you believe true but haven't verified, and that the design depends on. "Peak traffic is roughly three times the daily average," "the identity provider's token lifetime is fixed at one hour," "the team that owns the billing service will expose a batch endpoint by Q1"—each of these, if false, changes the design. Write them down with a note on what happens if they turn out wrong. Assumptions you never wrote down are the ones that sink projects.

A short pre-draft checklist

Before writing prose, confirm you can answer these in one sentence each: Who is the primary reader? What decision does this document ask them to make or approve? What is the single most important quality attribute (latency, durability, cost, simplicity)? What would make this design unacceptable? If any answer is missing, you're not ready to draft.

Draft the problem statement and requirements section

Requirements in a design document should be testable and prioritized. Split them into functional requirements (what the system does) and non-functional requirements (how well it must do it). The functional list should be short—typically five to fifteen items for a bounded system—and each item should describe observable behavior, not internal mechanics.

Non-functional requirements are where most design documents are weakest, because authors write "high availability" and call it done. Replace adjectives with numbers and conditions: availability target with the measurement window, latency target with the percentile and load level, throughput target with the traffic mix, durability target with what loss is tolerable, recovery targets with how long and how much data loss is acceptable. A requirement like "99.9% availability measured monthly, excluding planned maintenance announced 72 hours ahead" is reviewable; "high availability" is not.

Prioritize with a simple scheme: must-have for launch, should-have soon after, and explicitly deferred. This matters because designs are judged against requirements, and a design that meets the must-haves while deferring the rest is a success, whereas one judged against an undifferentiated wish list never is.

One caution on numbers: targets are commitments with cost. Doubling a latency percentile requirement can multiply infrastructure spend, so each non-functional target should carry a sentence on why that level is needed and what the next level down would cost. If you can't justify a number, lower it or mark it as a goal rather than a requirement.

Compare design options against equivalent criteria

A design document without alternatives reads as a sales pitch, and reviewers treat it accordingly. The alternatives section is where you show the work: describe two to four genuinely viable approaches, evaluate each against the same criteria, and explain why the chosen one wins.

"Genuinely viable" is the operative phrase. A strawman option the author clearly intends to lose adds nothing and erodes trust. If there's only one reasonable approach, say so and explain what forecloses the others—that's a legitimate and honest section.

Use the same criteria for every option, drawn from your non-functional requirements and constraints. A compact table helps here, with rows for the criteria and columns for the options, and cells holding short factual assessments rather than scores. Scores invite false precision; "adds roughly one network hop to every read" is more useful than "latency: 3/5."

Criterion Option A: extend existing service Option B: new dedicated service Option C: managed third-party product
Meets 200 ms p95 read target Marginal under peak load Yes Yes
Delivery effort Low—one team, familiar codebase Moderate—new deploy pipeline Low code, but procurement and integration
Operational burden Shared with existing on-call New on-call rotation needed Vendor-managed, but limited control
Data residency constraint Satisfied Satisfied Requires verification of vendor region options
Cost at projected volume Within current budget Additional infrastructure cost Per-request pricing scales with growth

Fill every cell with conditions and caveats, not just verdicts, and state the load level and measurement basis the assessments assume. If an assessment rests on an estimate rather than a measurement, label it—"estimated from current traffic patterns, not load-tested" is honest and tells reviewers what to challenge.

The comparison should also name what would change the decision. If Option B wins because peak traffic is expected to grow threefold, say that: if growth stalls, the recommendation flips. This single sentence is often the most valuable line in the section, because it tells future readers when to revisit.

Describe the proposed architecture at the right altitude

The architecture section is the heart of the document, and its most common defect is altitude. Too high, and reviewers can't find the flaw; too low, and the document becomes code in prose that will be stale within a month. Aim for the level of boxes-and-arrows plus the responsibilities of each box, with sequence and data flow for the paths that matter.

A workable structure: start with a one-paragraph overview of the system in plain language, then a component diagram (or a textual description of components if you can't embed images), then a table or list giving each component's single responsibility, its interfaces, and its owner. Components should be defined by what they're responsible for, not by which technology implements them—technology choices belong in a dedicated section, and mixing the two makes the design look more settled than it is.

Then walk the critical paths. For each important flow—a read, a write, a failure recovery, a batch job—describe the sequence of components involved, what data moves, and where state lives. Three to six critical paths is usually right for a bounded system. Naming where state lives is especially important: stateless services are easy to reason about, and any component holding state deserves a note on how that state is persisted, replicated, and recovered.

Include a data model sketch: the main entities, their relationships, and the access patterns that drive the schema. You don't need full table definitions, but you do need to say which queries must be fast and how the schema supports them. A design that ignores access patterns produces a schema that's clean on paper and slow in practice.

Finally, address failure behavior explicitly. For each component, what happens when it fails, what happens when it's slow, and what happens when it returns garbage? Designs that describe only the happy path are incomplete, because production is mostly edge cases.

Specify interfaces, data flow, and consistency

Interfaces deserve their own section because they're the contracts other teams build against. For each external interface, specify the protocol style, the request and response shapes at a field level, error semantics, idempotency behavior, authentication, and rate limits. Field-level detail prevents the classic integration failure where two teams agree on an endpoint name and disagree on whether a missing field means zero or unknown.

Data flow follows from interfaces but adds questions interfaces don't answer: where data is validated, where it's transformed, where it's stored, and how long it lives at each point. Draw the flow for at least the primary write path and the primary read path, and mark the trust boundaries—the points where data crosses from one security or ownership domain into another.

Consistency is the topic most often skipped and most expensive to retrofit. For each piece of shared state, state the consistency requirement in concrete terms: must a reader always see their own write; how stale may a replica be; what happens to concurrent updates to the same record; is duplicate delivery of a message tolerable. Then name the mechanism that provides it. "Read-your-writes via primary reads for the first 30 seconds after a write" is a specification. "Eventually consistent" alone is a shrug.

If the design involves asynchronous processing, specify delivery guarantees (at-most-once, at-least-once, exactly-once is a property of an end-to-end pipeline, not a queue), ordering guarantees, and what the consumer must do to be idempotent. These details are where integration bugs concentrate, and writing them down is cheap compared to discovering them in production.

Address the cross-cutting concerns reviewers will ask about

A design can be architecturally sound and still be rejected because it didn't answer the questions every reviewer asks. Handle these in a dedicated section so they don't derail review with a dozen separate threads.

Security and access control. Who can call what, how identities are established, where secrets live, what data is sensitive, and how it's protected in transit and at rest. Name the trust boundaries from the data-flow section and the control at each.

Reliability and operations. Failure modes and their handling, the observability plan (what metrics, logs, and traces will exist, and what alert will fire when the system misbehaves), backup and restore procedures with tested recovery expectations, and the deployment model including rollback.

Performance and capacity. The expected load, the headroom target, the known bottlenecks, and the plan for measuring rather than assuming. If you have estimates, show the arithmetic: requests per second times payload size gives bandwidth; record count times row size gives storage growth per year. Label estimates as estimates.

Cost. A rough operating cost estimate with its inputs, especially for anything usage-priced. Reviewers who control budgets will ask; answering in the document saves a round trip.

Migration and rollout. If the design replaces something, how do you get from here to there without downtime or data loss? Describe the phased plan, the dual-write or backfill approach if applicable, and the rollback point.

Make trade-offs, risks, and open questions first-class

Every design is a set of trade-offs, and a document that hides them reads as advocacy rather than engineering. State the significant ones plainly: what you optimized for, what you sacrificed, and why the sacrifice is acceptable given the requirements. "We chose availability over strict consistency on the activity feed; a user may briefly see a stale feed after posting, which we judged acceptable because the feed is informational" is the kind of sentence that builds reviewer trust.

Risks deserve a short register: the risk, its likelihood and impact in plain terms, the mitigation, and the trigger that would escalate it. Keep it to the significant handful—a risk list with twenty entries signals that none were prioritized.

Open questions are not a sign of weakness; unstated open questions are. List the decisions still pending, who owns each, and when an answer is needed to avoid blocking implementation. Reviewers often resolve open questions on the spot, which is exactly the value of writing them down.

Build a review loop and a writing routine that catches errors

A design document is finished when it has survived review, not when the author stops typing. A workable routine:

1: Circulate early and narrow. Share a one-page outline—problem, scope, chosen direction, top risks—with two or three trusted reviewers before drafting. This catches wrong-direction work at its cheapest. 2: Draft the whole document before polishing any section. Section-by-section perfection stalls the review; a complete rough draft gets useful feedback faster. 3: Do a self-review pass for arithmetic and consistency. Check that every number in the requirements matches the numbers in the capacity and cost sections, that the component list in the architecture matches the interfaces section, and that stated assumptions don't contradict constraints. Mislabeled units and inconsistent denominators are the most common defects reviewers find. 4: Send the draft with a specific ask. Tell reviewers what kind of feedback you need and by when: "I need challenges to the consistency approach and the migration plan by Thursday; copy edits can wait." 5: Resolve feedback in writing. For each substantive comment, either change the document or record why not. A design document that silently ignores review comments trains reviewers to stop reading. 6: Freeze and record the decision. When the design is approved, mark it approved with a date and the approving group. The document now serves its decision-record purpose.

Check success this way: a reviewer who wasn't in the discussion can read the document and correctly predict the system's behavior on the critical paths, including failure cases. If they can't, the document isn't done, regardless of its length.

Common failure modes and how to avoid them

The novel. Fifty pages where five would do. Length usually signals the author didn't decide what mattered. Fix: cut anything a reasonable reader doesn't need to approve the design, and move detail to appendices.

The diagram with no reasoning. Pictures of boxes without explanation of responsibilities, data flow, or alternatives. Fix: every diagram gets a paragraph on what it shows and why it's shaped that way.

Requirements as adjectives. "Scalable," "secure," "fast." Fix: convert each to a number, a condition, and a measurement method.

The hidden assumption. The design works only if a dependency behaves in an unstated way. Fix: an explicit assumptions list with a consequence for each if false.

Skipped failure behavior. The happy path is described in detail; nothing else is. Fix: a failure-behavior subsection per component and per critical path.

Stale after merge. The design says one thing; the code does another. Fix: date and version the document, and update it when a decision changes, or mark it superseded with a pointer to the replacement.

Consensus by silence. Nobody objected, so it shipped. Fix: require explicit approval from named reviewers, and record dissent in the document.

FAQ

How long should a system design document be?

As long as the decision requires, and no longer. A service-level design reviewed by one team often lands at three to eight pages; a cross-team platform design with migration and cost sections might run fifteen to thirty. If you're past that, check whether you've drifted into requirements or API reference territory.

Should I write the document before or after prototyping?

Both, at different depths. A short design before prototyping forces the key decisions early; then update the document with what the prototype taught you. Writing the final version only after prototyping risks retrofitting justification to a decision already made.

Does a small change need a design document?

A one-page version, often called a lightweight design or mini-RFC, is worth it for any change with a non-obvious trade-off or a cross-team interface. If the change is genuinely trivial and reversible, a sentence in the pull request description suffices.

Who should approve the design?

The people who will operate, depend on, and maintain the system, plus whoever owns the resources it consumes. Approval by people with no stake is ceremony; approval without the operators present is how designs that can't be run in production get greenlit.