One page

System Design cheat sheet

What to keep at hand. If a line is not clear, go back to the matching lesson in the course.

Open the course: System Design

Numbers worth knowing

WhatHow
Read from the CPU L1 cache~1 ns
Read from main memory~100 ns
Random read from SSD~16 to 100 µs
Network within a data center (round trip)~0.5 ms
HDD seek~10 ms
Europe to the US and back~100 to 150 ms

Estimation formulas

WhatHow
Seconds in a day86 400 ≈ 10^5
Average RPSDAU × actions per day / 86,400
Peak RPSaverage × 2 or 3
Storage per yearwrites per day × size × 365
1M requests per day≈ 12 RPS
Cache memory≈ 20% of a day's data

Availability

WhatHow
99%≈ 3.65 days of downtime per year
99,9%≈ 8.8 hours per year
99,99%≈ 53 minutes per year
99,999%≈ 5 minutes per year

Building blocks

WhatHow
Spread requestsload balancer (L4 / L7)
Offload readscache (Redis) + read replicas
Split writessharding by key
Serve static filesCDN + object storage
Slow workqueue + workers
Events between servicesKafka