<aside>

This section is part of the 5-hour System Design course by Mukul Raina

SLIDE 12: Section Intro, Capacity Estimation

Section 3: Capacity Estimation

image.png

Capacity estimation is where you turn a vague sense of “this needs to be fast” into concrete numbers that drive every architecture decision in your design. In a ride-sharing system, the numbers are not obvious. The dominant data flow is not ride requests. It is GPS location updates, and that single realization changes the entire system architecture.

This section is typically 2-3 minutes of your interview. Every number you estimate should motivate a specific architecture decision. If a number does not lead to a decision, it does not belong in your estimation.

What We’ll Cover

  1. Why capacity estimation drives architecture, not the other way around
  2. Traffic estimates: ride requests per second and GPS updates per second
  3. Concurrent active rides and peak-to-average ratios
  4. Read-to-write ratio and its implications for the spatial index
  5. Storage and bandwidth estimates
  6. Connecting every number to a specific architecture decision
  7. Worked example: sizing a city-scale location service

Where Capacity Estimation Feeds Into Later Sections

Estimate The Number Architecture Decision Covered In
GPS updates/sec 1.25M/sec Spatial index selection Section 6: Geospatial
Trip count/day 20M/day Database sharding strategy Section 8: Database Design
WebSocket connections 5M concurrent Dedicated gateway Section 4: Architecture
Location history volume 10 TB/day Time-series DB, not relational Section 8: Database Design
Peak local spikes 80x normal in 2km Autoscaling and queue buffering Section 11: Scaling

<aside>

Mukul Raina | youtube.com/@mukulraina | slides.mukulraina.com | LinkedIn

</aside>


SLIDE 13: Why Capacity Estimation Drives Architecture