01Chapter 1: Why estimate before you designEvery system design starts with a vague requirement such as "build a photo-sharing service for ten million users". Before you pick databases, caches, or a number of servers, you need a rough idea of how big the problem is. Back-of-the-envelope estimation gives you that idea in a few minutes, using o7 min read
02Chapter 2: Stating assumptions and rounding to keep math simpleThis chapter assumes you know basic arithmetic with large numbers and exponents. It also assumes you know what a client, server, database and cache do. Reading simple Python helps, but is optional.8 min read
03Chapter 3: Powers of two and data size unitsThis chapter covers the size units and powers of two you need for storage and memory estimates. It assumes you know what a byte and a bit are, can read exponents, and have seen simple Python. The earlier chapters on why we estimate and how to state assumptions apply here. Every figure below is meant6 min read
04Chapter 4: Time conversions: seconds per day and per yearThis chapter assumes you can do arithmetic with large numbers and exponents, and that you know what a request, a queue and a server are. You do not need to have read the earlier chapters on powers of two, but you should be comfortable with the idea of rounding to keep math simple.7 min read
05Chapter 5: Latency orders of magnitude: memory, SSD, network, diskThis chapter assumes you can do arithmetic with powers of ten, you know what a cache, a database and a load balancer do, and you can read short Python snippets. You do not need to remember exact hardware figures. You need to remember the ratios between them, because those ratios decide where a des6 min read
06Chapter 6: From daily active users to queries per secondThis chapter assumes you know the basics of client-server architecture, can do arithmetic with large numbers and powers of ten, and can read short Python snippets. You should already be comfortable with the 86,400-second day from the previous chapter on time conversions.7 min read
07Chapter 7: Peak load versus average loadThis chapter assumes you can convert daily active users into average queries per second (QPS) using the 86,400-second day. It also assumes you know what a load balancer, cache, and database do. The goal is to turn an average rate into the rate your system must survive.5 min read
08Chapter 8: Estimating storage over a retention periodThis chapter assumes you can convert daily active users into queries per second (covered earlier), know the powers of two and decimal size units, and can read short Python snippets. Here you turn write volume, record size, and retention into a total storage figure, then adjust it for the overhead th7 min read
09Chapter 9: Estimating ingress and egress bandwidthThis chapter assumes you can convert daily active users (DAU) into queries per second (QPS), and that you know the difference between average and peak load from earlier chapters. You should also be comfortable with decimal and binary data units, and with estimating storage from record size. Here you6 min read
10Chapter 10: Sizing a cache and working set in memoryThis chapter assumes you can convert daily active users into queries per second, estimate storage from record size and retention, and recall the rough latency gap between memory and disk. Here you will use those numbers to decide how much memory a cache needs.7 min read
12Chapter 12: Availability targets and allowed downtimeThis chapter turns an availability percentage such as "99.9%" into minutes of allowed downtime. It also shows how the availability of several components combines into the availability of the whole system. It assumes you know the time conversions from the earlier chapter (minutes per day and per year5 min read
13Chapter 13: Worked example: estimating a URL shortenerThis chapter chains the earlier techniques into one estimate: traffic, storage, key length, bandwidth, cache, servers, and availability. It assumes you know the 86,400-second day, powers of two and ten, and the peak-factor idea from earlier chapters. It also assumes you know what a cache, a database6 min read
14Chapter 14: Sanity checks and common pitfallsThis chapter assumes you can already chain the estimates from earlier chapters: daily active users (DAU) to queries per second (QPS), records to storage, QPS and payload size to bandwidth, and QPS to server count. It does not introduce a new formula. It covers how to check a finished estimate and wh6 min read