mufassall

Napkin math

The first question in system design: how much load? Enter the numbers and every result shows its formula with the steps in between.

Inputs

Results

Request rate (QPS)

Requests per day
— 
Reads, average
— 
Writes, average
— 
Reads, at peak
— 
Writes, at peak
— 

Bandwidth

Incoming (writes), at peak
— 
Outgoing (reads), at peak
— 

Storage

New data per day, with replicas
— 
Per year, with replicas
— 
Total over the retention period
— 

Servers and cache

Servers for the peak
— 
Cache memory (hot 20%)
— 

An estimate of the order of magnitude (tens or thousands). A day = 86 400 seconds, 1 KB = 1000 bytes; the cache holds 20% of the data read in a day.