System Design
1. System Design FundamentalsAnimated walkthrough
Latency
The time one request takes from start to finish.
The idea
Latency is delay: network travel, queueing, computation and disk reads add up. We usually track percentiles such as p50 and p99, not just averages.
Watch it work
The steps light up one at a time. Use the controls to pause or step through.
- 1Break a request into stages
- 2Time each stage
- 3Reduce the biggest (cache, move closer, parallelise)
- 4Watch p99, not only the average
1/4
Step by step
- 1Break a request into stages
- 2Time each stage
- 3Reduce the biggest (cache, move closer, parallelise)
- 4Watch p99, not only the average
Where it is used
Making apps feel fast.
Watch out for
The average hides slow outliers that many users still feel.