Interview's MateSystem Design
Interview's Mate

System Design

Architecture & trade-offs

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
All topics/Back-of-the-Envelope Estimation
FUNDAMENTALS & NETWORKING · SUBTOPIC

QPS & Peak Traffic Math

Turn daily active users into requests per second and realistic spike numbers.

BeginnerPart of Back-of-the-Envelope Estimation
Practice in AI HLD
Subtopics in Back-of-the-Envelope Estimation (3)
OverviewQPS & Peak MathStorage & BandwidthLatency 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.

Loading interactive diagram
Loading interactive exercise

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.

Key takeaway: Drop 5 zeros from daily requests to get approximate QPS in one second.

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

Quick check

Loading quiz
Parent topic
Back-of-the-Envelope Estimation
Next subtopic
Storage, Bandwidth & Cache Sizing