02Chapter 2: Measuring a system: latency, throughput, and utilizationThis chapter assumes you know how client-server and web applications are laid out, what CPU, memory, disk, and network do on a server, and what a web server and a database do. You do not need prior experience with monitoring tools.7 min read
03Chapter 3: Finding the bottleneck before you scaleThis chapter assumes you know the basics of client-server web architecture, the four main server resources (CPU, memory, disk, network), and what a web server and a database do. It also assumes you have met the terms latency, throughput, and utilization in the previous chapter. Here you will use tho8 min read
04Chapter 4: Vertical scaling: a bigger machineVertical scaling (also called scaling up) means adding capacity to a system by giving a single machine more resources. You move the same workload to a server with faster CPUs, more memory, faster disks, or a faster network link. The software architecture stays the same. Only the size of the box chan9 min read
05Chapter 5: Horizontal scaling: more machinesHorizontal scaling (also called scaling out) adds more machines to a system and divides the work among them. This chapter covers what changes when you go from one server to many, what the application must provide for that to work, and where it goes wrong. It assumes you know the basics of client-ser8 min read
06Chapter 6: Spreading requests with a load balancerThis chapter assumes you know how a client talks to a web server over HTTP, what a TCP connection is, and what a health check or timeout means at a basic level. It also assumes you have read the earlier chapters on horizontal scaling. Once you run several copies of an application server, something h7 min read
07Chapter 7: Keeping application servers statelessThis chapter assumes you know how a web request flows from client to server to database. It also assumes you have read the earlier chapters on horizontal scaling and load balancing. Horizontal scaling only works well when any server in the pool can handle any request. That property comes from keepin8 min read
08Chapter 8: Scaling the data tier: replicas and shardingThis chapter assumes you know what a relational database does, how a web server talks to it, and why application servers can be made stateless (covered in the previous chapter). It focuses on why the database is harder to scale out than the application tier, and on the two main techniques for doing 8 min read
09Chapter 9: Where scaling stops: hardware ceilings and Amdahl's lawThis chapter assumes you know the difference between vertical and horizontal scaling, can read basic latency and throughput numbers, and understand what a load balancer and a stateless application server do. Here you will learn why neither approach grows capacity without end, and how to estimate the8 min read
10Chapter 10: Trade-offs: availability, cost, and complexityThis chapter assumes you know what vertical and horizontal scaling are, and that you can read basic latency and utilization numbers. You have also seen load balancers and stateless application servers. Here the focus is on what each approach costs you in availability, money, and engineering effort. 8 min read
11Chapter 11: Autoscaling based on loadThis chapter assumes you know what horizontal scaling, load balancing, and stateless application servers are, and that you can read latency, throughput, and utilization numbers. Autoscaling automates the decision of how many servers (or how big a server) to run. It adds capacity when load rises and 7 min read
12Chapter 12: Choosing a strategy for your workloadThis chapter pulls the earlier ideas together into a decision process. It assumes you know the difference between vertical scaling (a bigger machine) and horizontal scaling (more machines). It also assumes you can read latency, throughput, and utilization numbers, and that you know why horizontal sc7 min read