Estimation
A rough calculation of the system's scale: requests per second, storage, bandwidth.
Example
100 million requests per day are about 1,160 per second.
Test yourself: Estimation
Requirements and estimates
To turn requests per day into requests per second, divide by ___.
A day has 86,400 seconds: 50 million requests a day is about 580 per second.
Designing a URL shortener
100 million links per month are about ___ per second.
100 M / (30 days × 24 h × 3,600 s) ≈ 38.6: rounded to 40.
Designing WhatsApp
50 million users × 40 messages per day are ___ messages per day.
10 messages to 4 people is 40 per user: 50 M × 40 = 2,000 M.
0/3
â–¶ PlayLessons that use it
Measuring efficiency
Fast and light on memory
Time complexity
Count steps, not seconds
Rate limiting algorithms
5 ways to count
Requirements and estimates
Ask before you draw
The design steps
From data to bottlenecks
Designing a URL shortener
A long link in 7 characters
Designing WhatsApp
2 billion messages a day
Designing Twitter
1 billion tweets a day
Designing Netflix
1 billion videos watched a day
Designing Uber
10 million rides a day
