01Chapter 1: Start with the problem, not the boxesMost weak system designs fail before the first box is drawn. The designer hears "design a URL shortener" or "design a news feed" and starts placing load balancers, caches, and databases. The diagram looks like a system, but nobody can say what it is for. This chapter explains why you should frame th7 min read
02Chapter 2: Pin down functional and non-functional requirementsThis chapter assumes you know how client-server systems and HTTP APIs work, you have used a relational or key-value database, and you can read short Python snippets. The previous chapter argued that you should start with the problem, not the boxes. Here you turn a vague prompt into a list of require7 min read
03Chapter 3: Set scope and write down your assumptionsYou have read the previous chapter on functional and non-functional requirements. You can read short Python snippets and know what an HTTP API and a database are. This chapter covers the step between "I know what the system should do" and "I can start calculating load": deciding what you will and wo7 min read
04Chapter 4: Estimate traffic, storage, and bandwidthThis chapter assumes you have already written down requirements and stated assumptions for the problem. It also assumes you can read short Python snippets and know what a request, a database, and a cache are. Here you turn those assumptions into numbers that guide the design.6 min read
05Chapter 5: Know your building blocksThis chapter assumes you can read a short Python snippet and know how a client talks to a server over HTTP. It also assumes you have used a relational database. You do not need to have run any of the components below in production. The goal is a working model of each component: what it does, what it6 min read
06Chapter 6: Sketch the API and the data modelThis chapter assumes you have already written down functional and non-functional requirements and a rough capacity estimate. It also assumes you can read HTTP requests and short Python snippets, and that you know what a relational table and an index are.6 min read
07Chapter 7: Draw the high-level architectureThis chapter assumes you have already written down requirements, scope, and assumptions, and that you have a rough capacity estimate and a sketch of the API and data model. It also assumes you know what a load balancer, a cache, a database, and a queue do. The goal here is to combine those inputs in7 min read
08Chapter 8: Choose storage that fits the access patternThis chapter assumes you have read the earlier chapters on requirements, capacity estimation, building blocks, and the API and data model. You should be comfortable with HTTP APIs, basic SQL, and short Python snippets. The goal here is to pick a storage system by looking at how the data is read and 7 min read
09Chapter 9: Scale with replication, partitioning, and cachingThis chapter assumes you can read short Python snippets and know how a client, an API server, and a database fit together. It also assumes you have a capacity estimate like the one from the estimation chapter. Here you choose the scaling techniques that estimate calls for and say what each one costs6 min read
10Chapter 10: Make trade-offs explicitThis chapter assumes you can read short Python snippets and know how HTTP APIs and databases work. It also assumes you have followed the earlier chapters: you have requirements, a capacity estimate, a high-level design, and a first pass at storage and scaling. Now you need to defend the choices behi6 min read
11Chapter 11: Deep dive into the riskiest componentThis chapter assumes you can produce a high-level design from requirements and capacity estimates, as covered in earlier chapters. You should also be comfortable with caches, replicas, and partitioned databases, and with reading short Python snippets.6 min read
12Chapter 12: Plan for failureThis chapter assumes you have read the earlier chapters on requirements, the high-level architecture, and scaling with replication, partitioning, and caching. You should also be comfortable reading short Python snippets. The goal is to take a design that works when everything is healthy and describe6 min read
13Chapter 13: Communicate and iterateA design that only you understand is not finished. This chapter covers how to explain a system design clearly and how to revise it when requirements change. It assumes you have worked through the earlier chapters: you can state requirements, estimate capacity, sketch an API, draw a high-level archit7 min read
14Chapter 14: Check the design against the requirementsThis chapter closes the process. You have a design, and now you test it. It assumes you have already written requirements, stated assumptions, estimated capacity, sketched an API and data model, drawn a high-level architecture, and picked storage and scaling approaches. You should also be able to re6 min read