# The system design checklist I actually use

- Published: 2026-11-03
- Updated: 2026-11-26
- Tags: System Design in Practice, Distributed Systems
- URL: https://devtrillo.com/writing/system-design-1-the-checklist/

> Part 1 of a series on system design for engineers who already ship backend services. Each part takes one problem that hurts real production systems: what breaks, which patterns fix it, and what they cost.

Your service promises 99.9% availability. It needs a database at 99.95%, a cache at 99.95% and an auth service at 99.9% on every request. All three look healthy on their dashboards.

Multiply them and this month's downtime budget is already gone. Not by a rounding error, and not because of anything you deployed.

Nobody draws that on the whiteboard. The boxes and arrows look fine.

## Where interview prep stops

The system design primer has about 375,000 stars on GitHub. It describes itself as a way to "learn how to design large-scale systems" and "prep for the system design interview".[^primer] Its method has four steps, and the last one is "scale the design".

That's a good method for an hour at a whiteboard. The design reviews I've sat in ask two more questions. Before the boxes: **what are we promising?** After them: what does it cost to keep that promise, and who gets woken up when we don't?

So my checklist starts one step earlier and ends one step later. Five moves: the promise, the math, the failure modes, the operating cost, and a one-page doc that holds all of it.

I'm assuming the lens from [DDIA part 1](/writing/reading-ddia-1-systems-book-everyone-recommends/): reliable, scalable, maintainable, and percentiles over averages. I won't redefine any of it here.

## Start with the promise

Google's SRE book gives the promise three names.[^slo] An **SLI** is the measurement, like the share of requests that succeed in under 300 ms. An **SLO** is the target for that measurement, like 99.9% over 30 days. An **SLA** is a contract with consequences when you miss.

The design review cares about the SLO. The SRE book's advice on picking one is blunt: don't pick a target based on current performance, keep it simple, avoid absolutes, have as few SLOs as possible, and perfection can wait.

Then the SLO turns into a budget. "An error budget is 1 minus the SLO of the service."[^budget] At 99.9% over a million requests, you get 1,000 failures to spend. Google's example policy says that once the budget is gone, they "halt all changes and releases other than P0 issues or security fixes."

That's why the promise comes first. It sets how much failure the design is allowed to have, and every later decision spends from it.

## Your dependencies spend it before you do

Availability in series multiplies.[^primer] Three dependencies at 99.95%, 99.95% and 99.9% give you 99.8% at best. Over a 30-day month that's 86.3 minutes of downtime, and a 99.9% budget is 43.2 minutes. Twice the budget, before you've shipped a single bug.

Try other numbers:

**Three critical dependencies against a 99.9% budget.** Pick each dependency's availability: 99.9% (43.2 min/mo of downtime), 99.95% (21.6 min/mo of downtime), 99.99% (4.3 min/mo of downtime). It starts at Database 99.95%, Cache 99.95%, Auth service 99.9%. Every combination:

| Database | Cache | Auth service | Result |
| --- | --- | --- | --- |
| 99.9% | 99.9% | 99.9% | Over budget. Dependencies alone: 129.5 min of downtime a month. Over the 43.2-minute budget by 86.3 min, before you ship a bug. |
| 99.9% | 99.9% | 99.95% | Over budget. Dependencies alone: 107.9 min of downtime a month. Over the 43.2-minute budget by 64.7 min, before you ship a bug. |
| 99.9% | 99.9% | 99.99% | Over budget. Dependencies alone: 90.7 min of downtime a month. Over the 43.2-minute budget by 47.5 min, before you ship a bug. |
| 99.9% | 99.95% | 99.9% | Over budget. Dependencies alone: 107.9 min of downtime a month. Over the 43.2-minute budget by 64.7 min, before you ship a bug. |
| 99.9% | 99.95% | 99.95% | Over budget. Dependencies alone: 86.3 min of downtime a month. Over the 43.2-minute budget by 43.1 min, before you ship a bug. |
| 99.9% | 99.95% | 99.99% | Over budget. Dependencies alone: 69.1 min of downtime a month. Over the 43.2-minute budget by 25.9 min, before you ship a bug. |
| 99.9% | 99.99% | 99.9% | Over budget. Dependencies alone: 90.7 min of downtime a month. Over the 43.2-minute budget by 47.5 min, before you ship a bug. |
| 99.9% | 99.99% | 99.95% | Over budget. Dependencies alone: 69.1 min of downtime a month. Over the 43.2-minute budget by 25.9 min, before you ship a bug. |
| 99.9% | 99.99% | 99.99% | Over budget. Dependencies alone: 51.8 min of downtime a month. Over the 43.2-minute budget by 8.6 min, before you ship a bug. |
| 99.95% | 99.9% | 99.9% | Over budget. Dependencies alone: 107.9 min of downtime a month. Over the 43.2-minute budget by 64.7 min, before you ship a bug. |
| 99.95% | 99.9% | 99.95% | Over budget. Dependencies alone: 86.3 min of downtime a month. Over the 43.2-minute budget by 43.1 min, before you ship a bug. |
| 99.95% | 99.9% | 99.99% | Over budget. Dependencies alone: 69.1 min of downtime a month. Over the 43.2-minute budget by 25.9 min, before you ship a bug. |
| 99.95% | 99.95% | 99.9% | Over budget. Dependencies alone: 86.3 min of downtime a month. Over the 43.2-minute budget by 43.1 min, before you ship a bug. (the starting state) |
| 99.95% | 99.95% | 99.95% | Over budget. Dependencies alone: 64.8 min of downtime a month. Over the 43.2-minute budget by 21.6 min, before you ship a bug. |
| 99.95% | 99.95% | 99.99% | Over budget. Dependencies alone: 47.5 min of downtime a month. Over the 43.2-minute budget by 4.3 min, before you ship a bug. |
| 99.95% | 99.99% | 99.9% | Over budget. Dependencies alone: 69.1 min of downtime a month. Over the 43.2-minute budget by 25.9 min, before you ship a bug. |
| 99.95% | 99.99% | 99.95% | Over budget. Dependencies alone: 47.5 min of downtime a month. Over the 43.2-minute budget by 4.3 min, before you ship a bug. |
| 99.95% | 99.99% | 99.99% | Within budget. Dependencies alone: 30.2 min of downtime a month. 13.0 min of the 43.2-minute budget left for your own bugs. |
| 99.99% | 99.9% | 99.9% | Over budget. Dependencies alone: 90.7 min of downtime a month. Over the 43.2-minute budget by 47.5 min, before you ship a bug. |
| 99.99% | 99.9% | 99.95% | Over budget. Dependencies alone: 69.1 min of downtime a month. Over the 43.2-minute budget by 25.9 min, before you ship a bug. |
| 99.99% | 99.9% | 99.99% | Over budget. Dependencies alone: 51.8 min of downtime a month. Over the 43.2-minute budget by 8.6 min, before you ship a bug. |
| 99.99% | 99.95% | 99.9% | Over budget. Dependencies alone: 69.1 min of downtime a month. Over the 43.2-minute budget by 25.9 min, before you ship a bug. |
| 99.99% | 99.95% | 99.95% | Over budget. Dependencies alone: 47.5 min of downtime a month. Over the 43.2-minute budget by 4.3 min, before you ship a bug. |
| 99.99% | 99.95% | 99.99% | Within budget. Dependencies alone: 30.2 min of downtime a month. 13.0 min of the 43.2-minute budget left for your own bugs. |
| 99.99% | 99.99% | 99.9% | Over budget. Dependencies alone: 51.8 min of downtime a month. Over the 43.2-minute budget by 8.6 min, before you ship a bug. |
| 99.99% | 99.99% | 99.95% | Within budget. Dependencies alone: 30.2 min of downtime a month. 13.0 min of the 43.2-minute budget left for your own bugs. |
| 99.99% | 99.99% | 99.99% | Within budget. Dependencies alone: 13.0 min of downtime a month. 30.2 min of the 43.2-minute budget left for your own bugs. |

Treynor and his co-authors at Google call this the rule of the extra 9: "A service cannot be more available than the intersection of all its critical dependencies."[^calculus] So "critical dependencies must offer one additional 9 relative to your service."

When a dependency can't give you that extra 9, they list three ways out: a capacity cache, failing open, and graceful degradation. They also warn against a tempting misreading. Each nested layer doesn't need yet another 9. The paper calls that inference "incorrect".

The same paper has one more number worth carrying into reviews. Three 20-minute outages in a year already rule out 99.99%, which allows about 53 minutes a year. The levers are fewer outages, a smaller scope per outage, and faster recovery.

## Do the math on one page

The primer's worked examples compute average QPS, things like "40 read requests per second on average".[^pastebin] They never apply a peak factor, and that's the step I'd add. Servers fall over at the peak, which for a B2B app is something like 9am on Monday.

Here's an estimate for an activity feed in a B2B app. Every input is an assumption, including a 5x peak. Measure your own peak-to-average from traffic you already have.

```ts title="envelope.ts"
// Activity feed in a B2B app. Every input is an assumption.
const dau = 500_000;
const readsPerUser = 20;
const writesPerUser = 2;
const peak = 5; // measure yours: busiest hour vs the daily average
const followers = 150;
const eventBytes = 500;
const overhead = 2; // indexes + replicas, rough

const day = 86_400;
const readQps = (dau * readsPerUser) / day;
const writeQps = (dau * writesPerUser) / day;
const fmt = (n: number) =>
  n.toLocaleString("en-US", { maximumFractionDigits: 1 });

console.log("reads/s    avg", fmt(readQps), " peak", fmt(readQps * peak));
console.log("writes/s   avg", fmt(writeQps), " peak", fmt(writeQps * peak));
console.log("feed inserts/s at peak", fmt(writeQps * peak * followers));

const eventsGB = (dau * writesPerUser * 365 * eventBytes * overhead) / 1e9;
console.log(
  "GB/yr  events",
  fmt(eventsGB),
  " fanned out",
  fmt(eventsGB * followers),
);

// Little's law: in flight = arrival rate x time in system
console.log("in flight at peak, 300 ms each", fmt(readQps * peak * 0.3));
```

```text title="bun envelope.ts"
reads/s    avg 115.7  peak 578.7
writes/s   avg 11.6  peak 57.9
feed inserts/s at peak 8,680.6
GB/yr  events 365  fanned out 54,750
in flight at peak, 300 ms each 173.6
```

The headline number is small. About 580 reads a second at peak won't scare anyone in a review.

The dangerous number is the one below it. If each post gets copied into every follower's feed, 58 writes a second become about 8,700 inserts a second, and 365 GB a year of events becomes about 55 TB of feed rows. **The obvious number is rarely the one that bites.** Fan-out is. Whether you copy on write or assemble on read is a data-model question, and [DDIA part 2](/writing/reading-ddia-2-choosing-a-data-model/) is about exactly that: access patterns pick the store.

The last line is Little's law: requests in flight equal arrival rate times time in system.[^little] It tells you how big your connection pools need to be. The 300 ms is the p99, not the average. I used it on purpose, as a ceiling.

Two shortcuts from the primer make this fast. One request per second is about 2.5 million a month, and 400 per second is about a billion.[^pastebin]

**Quiz:** A product manager says the new export endpoint will get 2 million calls a month. What do you size it for?

- About 0.8 requests a second, the monthly average
- The peak: ask when the calls happen, then size for that hour
- 2 million concurrent connections

**Answer:** The peak: ask when the calls happen, then size for that hour — 2 million a month averages under one request a second. If most of them land at 9am on the 1st, the real load is far higher. Ask for the shape before you size.

- Not "About 0.8 requests a second, the monthly average": That's the average, and nobody calls an export endpoint evenly. Size for the burst.
- Not "2 million concurrent connections": That mixes up volume and concurrency. Little's law: what's in flight is rate times time in system.

## Ask what happens when each dependency is slow

Down is the easy case. It's loud, and someone notices. **Slow is the one that takes you out.** The SRE book's chapter on cascading failures defines it as "a failure that grows over time as a result of positive feedback." The usual causes are overload, resource exhaustion and a dependency that stopped answering.[^cascade]

Fan-out makes slow worse. Dean and Barroso's numbers: if a request has to wait on 100 servers, and each one is slow on 1 in 100 requests, then 63% of user requests are slow.[^tail] A rare tail becomes the common case.

**Quiz:** A search page queries 50 shards in parallel and waits for all of them. Each shard is slow on 1% of requests. Roughly what share of page loads are slow?

- 1%
- About 40%
- 50%

**Answer:** About 40% — 1 − 0.99^50 ≈ 0.395. Each shard is fine on its own, and together they make four in ten page loads slow.

- Not "1%": That's one shard. The page waits for all 50, so any one of them being slow makes the page slow.
- Not "50%": Close, but slow requests don't add up linearly. It's 1 − 0.99^50, about 39.5%.

So the review gets a table with one row per dependency. Here's my first pass for the feed:

| Dependency | Slow                        | Down                         | Wrong                      |
| ---------- | --------------------------- | ---------------------------- | -------------------------- |
| Postgres   | Pools fill, requests queue  | No feed, no posting          | Stale reads from a replica |
| Cache      | Every read goes to Postgres | Same, plus a load spike      | Old feed served            |
| Auth       | Every request waits on it   | Nobody gets in, or fail open | Wrong tenant's feed        |
| Fan-out    | Feeds lag behind posts      | Posts saved, feeds frozen    | A post lands twice         |

Every cell needs an answer before the design is approved, even if the answer is "we accept this". Some of them need a mitigation: the cache, failing open, degrading to a shorter feed, shedding load. How long you wait and how often you retry is a whole topic of its own, and it's part 2.

## Operability is a design input

A design that's cheap to build and expensive to run isn't cheap. The SRE book's launch checklist asks questions most design docs skip.[^launch] What happens when a machine dies, a rack fails, or a cluster goes offline? Who is monitoring the monitoring? Are there canaries under live traffic and staged rollouts? What happens at 10x growth? How do you avoid accidentally overrunning third-party services?

I add four of my own:

- **How do we roll back?** If deploy and release are the same step, rollback is a redeploy under pressure. [Deploy is not release](/writing/continuous-delivery-1-a-state-not-a-pipeline/).
- **How does the schema change?** Every schema change should be [expand, migrate, contract](/writing/continuous-delivery-5-data-and-migrations/), and [DDIA part 3](/writing/reading-ddia-3-storage-and-schema-changes/) covers why old and new code have to read the same rows.
- **What pages a human, and how often?** If the answer is "we'll see", the design isn't done.
- **What do we measure?** An SLI nobody records is a guess. [Measuring delivery](/writing/continuous-delivery-6-measuring-cd/) is a good place to start.

Of the three levers in the availability paper, faster recovery is the one that's most yours. You can't make your dependencies better, but you can shorten your own MTTR.

## The template

Everything above fits on one page. The sections come from Malte Ubl's write-up of design docs at Google, with SLOs, estimates, failure modes and operability added.[^ubl] Every later part in this series links back here.

```markdown title="design-doc.md"
# <Name>: design

## Context and scope

What exists today, what's changing, and what's out of scope.

## Goals and non-goals

- Goal:
- Non-goal:

## SLOs

| SLI                         | Target | Window |
| --------------------------- | ------ | ------ |
|                             |        |        |
| Error budget: 1 - SLO = ... |

## Estimates

Assumptions first (users, reads and writes per user, peak factor, fan-out).

- Peak reads/s, peak writes/s
- Storage per year
- The number that grows fastest:

## Design

- Diagram (boxes, arrows, and which arrows are synchronous)
- API
- Data: what's stored where, and how it's read back

## Failure modes

| Dependency | Slow | Down | Wrong |
| ---------- | ---- | ---- | ----- |
|            |      |      |       |

- What happens if this write runs twice?

## Operability

- Deploy and rollback:
- Migrations:
- What pages a human, and how often:
- Dashboards and SLIs:

## Alternatives considered

What we didn't pick, and why.

## Open questions
```

Ubl puts large design docs at 10 to 20 pages and a mini design doc at 1 to 3. This is the mini one.

## When not to bother

Skip the doc when the solution is unambiguous and the doc would only say how to implement it. Ubl's rule, and a good one. Skip it when you can prototype faster than you can write it, and [build a tracer bullet](/writing/tracer-bullets-with-llms/) instead.

And don't set four nines for an internal tool. Every 9 you add costs you a dependency budget you probably can't afford, and the people using it would rather have the features.

## The checklist is a habit

None of this needs a new tool. It's five moves you make before the boxes and after them, until you make them without the list.

Start with your next design review. Find the dependency table, and if there isn't one, ask what happens when auth is slow.

Next in the series: timeouts, retries and backoff, or how long to wait for a dependency that isn't answering.

[^primer]: Donne Martin, [system-design-primer](https://github.com/donnemartin/system-design-primer). The tagline, the four-step method and the availability formulas (in sequence, `A = A1 × A2`; in parallel, `A = 1 − (1 − A1)(1 − A2)`) are all in the README.

[^slo]: Google, [Service Level Objectives](https://sre.google/sre-book/service-level-objectives/), _Site Reliability Engineering_. The definitions and the target-picking rules are from this chapter.

[^budget]: Google, [Example Error Budget Policy](https://sre.google/workbook/error-budget-policy/), _The Site Reliability Workbook_.

[^calculus]: Ben Treynor, Mike Dahlin, Vivek Rau and Betsy Beyer, ["The Calculus of Service Availability"](https://sre.google/static/pdf/calculus_of.pdf), _ACM Queue_, March–April 2017 (PDF). It also defines availability as MTTF / (MTTF + MTTR).

[^pastebin]: The primer's [Pastebin walkthrough](https://github.com/donnemartin/system-design-primer/blob/master/solutions/system_design/pastebin/README.md). It rounds a month to 2.5 million seconds; 30 days is 2.592 million.

[^little]: J. D. C. Little, ["A Proof for the Queuing Formula: L = λW"](https://doi.org/10.1287/opre.9.3.383), _Operations Research_ 9(3), 1961. Strictly, W is the mean time in the system. Plugging in the p99 overstates concurrency, which is what you want when sizing a pool.

[^cascade]: Google, [Addressing Cascading Failures](https://sre.google/sre-book/addressing-cascading-failures/), _Site Reliability Engineering_.

[^tail]: Jeffrey Dean and Luiz André Barroso, ["The Tail at Scale"](https://research.google/pubs/the-tail-at-scale/), _Communications of the ACM_ 56(2), 2013. With 2,000 servers each slow on 1 in 10,000 requests, the paper puts it at "almost one in five user requests".

[^launch]: Google, [Launch Coordination Checklist](https://sre.google/sre-book/launch-checklist/), _Site Reliability Engineering_.

[^ubl]: Malte Ubl, [Design Docs at Google](https://www.industrialempathy.com/posts/design-docs-at-google/) (2020).

- **Part 2 — Your retries are the outage**: timeouts, backoff, retry budgets and deadlines, and a lab where backoff with jitter changed nothing.
- **Part 3 — The idempotency key that did nothing**: idempotency keys end to end: insert the key first, forward it to the payment provider, and dedupe consumers in one transaction.
- **Part 4 — Your database and your broker will disagree**: the transactional outbox and change data capture: why the relay everyone writes first loses events, and what reading the Postgres log costs.
- **Part 5 — Your Postgres queue is fine until someone leaves a transaction open**: Postgres as a queue: SKIP LOCKED, leases, transactional enqueue with pgmq and River, the open transaction that stalls it, and what a log gives you instead.
- **Part 6 — The saga that forgot it charged the card**: sagas versus durable execution: why two-phase commit is off the table, a saga log that survives crashes, and what Temporal persists and costs.
- **Part 7 — Two hundred callers and one expired key**: caching in production: cache stampedes and four fixes, the stale set a delete can't prevent, hot and big keys, and Valkey versus Redis in 2026.
- **Part 8 — The server that said yes to everything**: rate limiting and load shedding: bounded queues and priorities, four limiter algorithms and their bursts, a shared counter's cost, and Envoy's ratelimit service defaults.
- **Part 9 — Thirty seconds of nobody writing**: sharding and resharding without downtime: shard keys and hot tenants, scatter queries and cross-shard transactions, a live Vitess reshard and the same move in Postgres.
- **Part 10 — Four thousand commits and a counter that says 501**: consistency models you actually ship: lost updates and write skew measured on Postgres and MySQL, what Jepsen keeps finding, and reading your own writes from a replica.
- **Part 11 — Thirty-two workers and one bad tenant**: cell-based architecture and blast radius: a poison tenant against a shared pool, cells and shuffle shards, deploying cell by cell, and cells for a small team.
- **Part 12 — One click, nine calls to inventory**: observability for distributed systems: a retry storm read off one trace, carrying context across a queue, SLO burn-rate alerts, head vs tail sampling, and metric cardinality.
- **Part 13 — A query nobody changed returned twice the rows**: learning from other people's outages: Cloudflare's doubled feature file rebuilt in Postgres, AWS's DNS race as a toy, recovery as a load spike, and reading a postmortem like a design review.
- **Part 14 — One customer's dead endpoint held every worker**: capstone, a webhook delivery service: per-endpoint fairness measured against a dead endpoint and a 20,000-event burst, retries that last days, signatures, SSRF guards, and the series' template filled in.
