The senior engineer's craft · L2Design docs and RFCs

Design docs and RFCs

A short written plan, shared before you build, finds problems while they are still cheap. Learn when to write one, what goes in it and how to get it agreed.

L2 SeniorThe senior engineer's craft17 min read
Fact-checked by AI against cited sources · Human review pendingLast reviewed 21 Oct 2026 · How we check content
Senior at work · lesson 15 of 26
Section 1 of 8

What broke

A made-up story to show a common failure. Not about a real company.

This story is made up, but it is common.

A shop has a warehouse system from 2015. It reads each order ID and expects a number with exactly 10 digits. In a kickoff meeting, an engineer named Ravi says, "Do not change the order ID format. The warehouse parses it." Everyone nods. Nobody writes it down.

Four months later, Ravi has moved to another team. A new engineer, Mei, gets a task: make order IDs safe to create on many servers at once. She chooses UUIDs, a common and good choice. The code review looks fine. Tests pass, because the warehouse is not part of the test setup.

On a Friday evening, the change goes live. The warehouse system rejects every new order. For six hours, paid orders pile up and nothing ships. The team rolls back, then spends two days moving the stuck orders by hand.

Mei did nothing wrong. The constraint lived only in the heads of the people at that meeting. One line in a design doc, "Constraint: the warehouse parses order IDs as 10-digit numbers", would have stopped this. So would a short decision record next to the code.

Section 2 of 8

The idea in simple words

A design doc is a short written plan for a piece of work. You write it before you build. It says what problem you solve, what you will not solve, the options, and why you chose one.

Malte Ubl, who wrote about design docs at Google, lists what they are for. They find design problems early, while changes are still cheap. They build agreement across the organisation. And they become a memory of why decisions were made. 1

The key idea. A design doc is not paperwork. It is how you think clearly, get others to find your mistakes early, and leave a record for the people who come after you.

An RFC (request for comments) is the same idea with a more formal process. Many companies use the names in different ways. HashiCorp, for example, uses an RFC to propose a solution, after a separate document has defined the problem. 3

When to write one. Will Larson suggests a design doc for any work that takes more than a month of engineering time. He also suggests one for work that other projects will build on, or that strongly affects users. 2

When not to. If the right solution is clear, a doc adds little value. If you are still prototyping and changing things fast, writing and reviewing a doc may slow you down. 1 Our advice: fixing a bug or adding a field needs a clear ticket, not a design doc.

Section 3 of 8

How it works

Step through the life of one design doc. Use Next and Back, or the ← and → keys.

The life of a design doc: from draft to a record people still use1 · Draftgoals, non-goals, 3 options · 4 pages 2 · Feedback5 reviewers · 18 comments · 1 week"what if DB is down?" 3 · Reviseadd a risk, drop option C, fix goals 4 · Decision30-min review · open questions closed 5 · ADR-014 in the repocontext · decision · consequences ✓ 6 months latera new teammate reads why, not guesses SeniorPath
  1. You write a short draft. It says what problem you solve, what you will not solve, and three ways to do it, with the trade-offs.
  2. You share it. Five people leave 18 comments in one week. One asks what happens when the database is down. You had not thought about that.
  3. You change the doc. You add the risk and a plan for it. You drop one option that reviewers showed was too costly.
  4. A short review meeting closes the last open questions. The owner makes the decision and writes it at the top of the doc.
  5. You copy the decision into a one-page ADR in the code repo. It says what you decided, why, and what it costs.
  6. Six months later, a new teammate wants to change the design. They read the ADR, see the constraint, and do not break it by accident.
Step 1 of 6

A good structure

Most good design docs have the same parts. Here is a short template you can copy:

# Order IDs that are safe across servers
Author: Mei · Status: In review · Reviewers: Ravi, Ana

## Context
Why now, and what exists today. Two paragraphs.

## Goals and non-goals
Goals: unique IDs from any server; keep the 10-digit number format.
Non-goals: changing IDs of old orders.

## The design
How it works. One diagram. Key APIs and data.

## Alternatives considered
A: UUIDs. B: database sequence. C: Snowflake-style IDs.
Why we chose B, and what we give up.

## Constraints, risks and rollout
Warehouse parses IDs as 10-digit numbers.
Rollout: 1% of orders, then 100%. Rollback: flag off.

## Open questions
Who owns the ID service on-call?

A few sections deserve special care:

  • Non-goals. Ubl explains that a non-goal is something that could reasonably be a goal, but you chose to leave out. "The system should not crash" is not a non-goal. 1 Non-goals stop scope from growing in review.
  • Alternatives considered. Ubl calls this one of the most important sections. It shows why your choice is better than the others. 1
  • Cross-cutting concerns. Security, privacy and observability. Ubl says each team should agree on which of these its docs must cover. 1
  • Constraints. Write down the facts you cannot change, like the warehouse format. These are what new people do not know.

Keep it short. Ubl says 10 to 20 pages works for large projects. A small change can use a "mini design doc" of 1 to 3 pages. 1 HashiCorp's guide says the background takes a paragraph or two, and the proposal takes one. 3

How reviews work

First, share the draft with a few people who know the area. Larson's advice is to gather input together but write alone. A doc written by a group is usually harder to fix. 2 Do not wait for perfect. A good doc in front of people now beats a better one next month. 2

Then share more widely. Most review happens as written comments in the doc. Ubl describes this light path, and a heavier one: a formal review meeting with senior engineers. 1 At HashiCorp, anyone can comment, but you need explicit approval only from the right team leads. 3 Gergely Orosz reports that at Uber, the process started as an email to every engineer. Later it moved to mailing lists per area, such as backend, mobile and web. 4

Some processes are more formal. Oxide keeps each RFD (its name for an RFC) in a git repo and discusses it in a pull request. Each one moves through states such as discussion, published and committed. 5 The Rust project ends each RFC with a final comment period of ten calendar days, so people have a last chance to object. 6

ADRs: the lightweight cousin

A design doc covers a whole project. An ADR (architecture decision record) covers one decision. Michael Nygard proposed them in a 2011 blog post. Each ADR has a title, context, decision, status and consequences. It is one or two pages, and it lives in the code repo. 7

Nygard's reason is simple. Without the "why", a new person can only blindly accept an old decision, or blindly reverse it. Both can hurt the project. 7 When you reverse a decision, you do not delete the old ADR. You mark it as superseded (replaced by a newer decision) and link to the new one. 7 The set of ADRs in a project becomes its decision log. 8

Common mistakes

  • Solution first. The doc opens with "We will use Kafka" before it explains the problem. Readers cannot judge a fix for a problem they do not understand.
  • No real alternatives. Only one option, or two fake ones that nobody would pick.
  • Too long. Thirty pages of detail that nobody reads. Put the decision and the trade-offs at the top.
  • No non-goals. Every reviewer adds a feature, and the project doubles in size.
  • Hidden constraints. The one fact that matters, like the warehouse format, stays in someone's head.

Write in simple English

Many of your readers do not speak English as a first language. They read on a phone, between meetings. Use short sentences. Use one word for one thing. Put the conclusion first. HashiCorp designs its RFC template so readers can stop at any time. Someone with a small stake can read only the background and the proposal. 3

Section 4 of 8

Trade-offs

OptionWho it helpsCost to writeUse it when
Just a ticketYour team, this week.Minutes.The fix is clear and easy to undo.
ADRFuture engineers who ask "why?"30 to 60 minutes.One decision that is hard to reverse or easy to break by accident.
Design docYour team and the teams around you.Days.More than a month of work, many teams, or the right answer is unclear.
Formal RFC processThe whole company or community.Days to weeks, plus review time.Changes that affect many teams or public users, like a new API or language feature.

Simple rule: match the weight of the document to the cost of being wrong. Ubl warns that heavy reviews can turn into overhead. 1

Section 5 of 8

At work: how a senior uses this

  • Before a big task, ask: "If we get this wrong, how much does it cost to undo?" If the answer is weeks, write a doc.
  • Write the problem and the non-goals first. Share those two parts before you design anything.
  • Show at least two real alternatives, with what each one costs.
  • Name the decision owner and a decision date in the doc header. Reviews without a deadline never end.
  • Ask reviewers for specific help: "Ana, please check the database part."
  • Close every comment: accept it, or explain why not. Unanswered comments look like open problems.
  • After the decision, write an ADR and link it from the code. Link the design doc too.
  • When you review someone else's doc, ask: "What constraint would a new person not know?"
Section 6 of 8

With AI

What to ask the agent

"Here are my notes and the current code. Draft a design doc with these sections: context, goals and non-goals, design, alternatives, risks, rollout, open questions. Mark anything you guessed with [GUESS]."

"Act as a strict senior reviewer. List the five weakest points of this design doc. Look for missing non-goals, hidden constraints, missing failure cases and a missing rollback plan."

"Rewrite this section in simple English for non-native readers. Keep every fact. Use sentences under 20 words."

"Turn this decision into an ADR with title, context, decision, status and consequences, in under one page."

What to check yourself

  • Every fact about your system is true. The agent may invent APIs, limits or numbers.
  • The alternatives are real options your team could choose, not weak options added only to be rejected.
  • The constraints come from people and systems, not only from the code. The agent cannot know what was said in a meeting.
  • The decision and the trade-offs are yours. You must be able to defend them in review without the agent.
  • The doc is short. Agents tend to write too much. Cut it.
Section 7 of 8

Check yourself

1. You need to rename one field in an internal API. Only your team uses it, and the fix is clear. Do you need a design doc?

Show answer

No. A clear ticket or pull request description is enough. A design doc pays off when the right answer is unclear or the cost of being wrong is high. Here neither is true.

2. Which of these is a good non-goal for a new search service?

Show answer

We will not support search in languages other than English in this version. A non-goal is something that could reasonably be a goal, but you chose to leave out. "Should not crash" is just a goal said backwards.

3. Why is the "Alternatives considered" section so important?

Show answer

It shows reviewers why the chosen design is better than the other real options. Without alternatives, readers cannot tell if you chose well or just chose the first idea.

4. What is an ADR?

Show answer

A one- or two-page record of one decision, its context and its consequences, kept with the code. Nygard's ADRs are short, one per decision, and stored in the repo so future engineers can find the reason.

5. An AI agent drafts your design doc and recommends option B. What must you still do yourself?

Show answer

Check the facts, own the decision and the trade-offs, and be ready to defend them in review. The agent can draft and critique. The decision, and the cost of being wrong, stay with you.

Your progress is saved only in this browser. Export it to keep it safe.

Was this clear?
Report a mistake (opens GitHub in a new tab)
Section 8 of 8

Go deeper

Show 8 sources and related lessons
  1. Malte Ubl, “Design Docs at Google”, Industrial Empathy (2020) (opens in a new tab)
    Why Google writes design docs, the usual sections, good length, when not to write one, and how reviews work.
  2. Will Larson, “Writing engineering strategy”, StaffEng (opens in a new tab)
    When a project needs a design doc, and practical advice on drafting and getting feedback.
  3. HashiCorp, “Writing practices and culture”, How HashiCorp Works (opens in a new tab)
    A real company process with two documents, a PRD for the problem and an RFC for the solution, and links to both templates.
  4. Gergely Orosz, “Scaling Engineering Teams via RFCs: Writing Things Down”, The Pragmatic Engineer (opens in a new tab)
    His reporting on how Uber's RFC process started as an email to all engineers and grew with the company.
  5. Oxide Computer Company, “RFD 1: Requests for Discussion” (opens in a new tab)
    An RFC process that lives in git, with clear states from first idea to fully built.
  6. The Rust project, RFC process (README of the rust-lang/rfcs repository) (opens in a new tab)
    An open-source RFC process step by step, including the final comment period.
  7. Michael Nygard, “Documenting Architecture Decisions”, Cognitect (2011) (opens in a new tab)
    The original ADR post. The five sections, why records are kept short, and why old ones are never deleted.
  8. ADR GitHub organisation, “Architectural Decision Records” (opens in a new tab)
    Definitions, templates and tools for ADRs, collected by people who use them.

Related: Architecture decision records (coming soon) · Clear technical writing (coming soon) · Making architecture trade-offs · Requirements and non-functional needs

Term

See full entry

Jump to a section

  1. 1What broke
  2. 2The idea in simple words
  3. 3How it works
  4. 4Trade-offs
  5. 5At work
  6. 6With AI
  7. 7Check yourself
  8. 8Go deeper