System design›Estimating: back-of-the-envelope numbers
Tutorial 6 of 8 · System design · Designing a system · Intermediate
Estimating: back-of-the-envelope numbers
Turn "ten million users" into requests per second, storage per year and a number of servers.
6 lessons, the last is a challenge · about 1 h · Python and Java
Before you start
You finished "What happens when you open a website": you know what a request and a server are, and that one server in that tutorial finishes about 400 requests per second.
You can multiply and divide large numbers with a calculator or a few lines of Python or Java.
1Say why an estimate only needs the right order of size, write every assumption down, and use the numbers worth keeping in your head: 86,400 seconds in a day and the size steps from KB to PB.
2Turn daily users and what each of them does into average and peak requests per second, split into reads and writes.
3Work out how much space a service needs per day and per year, with copies, and how many bits per second it sends.
4Turn a peak into a number of servers, rounding up, and say how the answer moves when one assumption changes.