QPS & Peak Traffic Math
Turn daily active users into requests per second and realistic spike numbers.
In plain words
QPS simply counts how many requests arrive in one second. You divide daily requests by ~100,000 (the rounded seconds in a day), then multiply by 3 for busy hours.
Think of it like…
A coffee shop might average 30 customers an hour across the whole day, but at 8:30 AM rush hour 90 customers show up - you staff for the morning rush, not the daily average.
Theory & how it works
Why 100,000 instead of 86,400?
A day has 24 × 60 × 60 = 86,400 seconds. In mental math, dividing 1,000,000,000 by 86,400 stalls most people. Rounding 86,400 up to 100,000 (10⁵) is only ~15% off and lets you drop five zeros instantly.
Remember the handy anchor: 1 million requests/day ≈ 12 QPS, and 100 million requests/day ≈ 1,200 QPS.
Read-to-Write Ratio drives the whole design
Twitter/X has roughly a 100:1 read-to-write ratio (people read far more tweets than they post). A chat or IoT logging app might be closer to 1:1 or write-heavy.
Read-heavy systems benefit massively from caches, CDNs, and read replicas. Write-heavy systems need fast append logs (LSM-trees), queues, and write sharding.
Key points & practical guide
Summary checklist
- 1 day = 86,400 s ≈ 10⁵ s for quick mental math
- Peak QPS = 2× to 5× average QPS (higher for flash sales or live events)
- Separate Read QPS and Write QPS early because they scale differently
When to use it
- Every system design interview in the first 3 minutes
- Sizing load balancers, API pods, and database connection pools
Watch out for
- Designing only for average QPS causes crashes during rush hour
- Forgetting background jobs or polling traffic when estimating QPS