Back-of-the-Envelope Estimation
Lesson 4Beginner1h 10mAssessment-backed

Back-of-the-Envelope Estimation

Learn simple sizing math for traffic, storage, bandwidth, cache, and worker capacity before choosing architecture.

What you will be able to do

Estimate reads, writes, storage, bandwidth, and peak traffic using simple assumptions.
Understand why estimation guides architecture choices.
Avoid false precision while still making defensible design decisions.
Size a real product scenario before choosing database, cache, queue, or compute.
Connect estimates to cloud capacity, quotas, costs, and scaling decisions.

Back-of-the-envelope estimation is quick engineering math. It helps you decide whether a simple design is enough or whether scale changes the architecture.

Why Estimation Matters

Without estimates, system design becomes guesswork. With estimates, you can explain why a single database might be enough, why a cache is useful, why a queue is required, or why a service must scale horizontally.

Back of the envelope estimation map
Estimation translates product usage into read, write, storage, bandwidth, and worker capacity pressure.
EstimateQuestionArchitecture impact
Write trafficHow many new records or updates per second?Database writes, queue throughput, worker count.
Read trafficHow often is data fetched?Indexes, cache, replicas, CDN.
StorageHow much data accumulates over time?Database size, object storage, retention, backup cost.
BandwidthHow much data moves across the network?CDN, compression, egress cost.
Peak factorHow much higher is peak than average?Autoscaling, buffers, rate limiting, backpressure.

Core Conversions

You do not need complex math. You need a few conversions and the discipline to state assumptions clearly.

ConversionApproximation
1 day86,400 seconds, often rounded to 100,000 seconds
1 million/dayAbout 10 requests/sec on average
10 million/dayAbout 100 requests/sec on average
100 million/dayAbout 1,000 requests/sec on average
1 KB x 1 millionAbout 1 GB
1 MB x 1 millionAbout 1 TB

Design principle

Estimation is not about perfect numbers. It is about discovering whether the design pressure is small, medium, large, or dangerous.

Scenario: URL Shortener

Suppose we design a URL shortener. Users create short links, share them, and other users click those links. Reads are usually much higher than writes.

URL shortener sizing diagram
A URL shortener is a useful first estimation exercise because read traffic dominates write traffic.
AssumptionValueWhy it matters
New short links10 million/dayWrite volume.
Redirect clicks1 billion/dayRead volume.
Average URL record500 bytesStorage estimate.
Retention5 yearsLong-term storage.
Peak factor5x averageCapacity planning.

Step-by-Step Estimate

Use rounded numbers first. You can refine later when the design needs precision.

StepCalculationResult
Write QPS10 million links/day / 100,000 secAbout 100 writes/sec
Read QPS1 billion clicks/day / 100,000 secAbout 10,000 reads/sec
Peak read QPS10,000 avg x 5About 50,000 reads/sec
Daily storage10 million x 500 bytesAbout 5 GB/day
5-year storage5 GB/day x 365 x 5About 9 TB before replicas/indexes

What the Estimate Tells Us

The write path is moderate, but the read path is large. That suggests careful indexing, cache for hot short codes, CDN or edge caching where possible, and horizontal scaling for redirect services. It does not immediately require every advanced distributed system pattern.

ObservationDesign response
Reads dominate writesOptimize redirect lookup path first.
Peak reads are highUse stateless redirect service behind load balancing.
Hot links may get huge trafficCache popular short code mappings.
Storage grows steadilyPlan partitioning, retention, backup, and index size.
Redirect must be fastKeep synchronous path small and avoid unnecessary joins.

Cloud Capacity Thinking

Cloud platforms do not remove estimation. They make capacity easier to adjust, but you still need to understand quotas, cost, region limits, autoscaling behavior, and managed service constraints.

NeedAWS examplesGCP examplesAzure examples
Stateless redirect computeECS/EKS/LambdaCloud Run/GKEContainer Apps/AKS/Functions
Lookup storageDynamoDB/RDS/AuroraSpanner/Cloud SQL/FirestoreCosmos DB/Azure SQL
Hot lookup cacheElastiCacheMemorystoreAzure Cache for Redis
Edge accelerationCloudFrontCloud CDNAzure Front Door/CDN
Metrics and autoscaling signalsCloudWatchCloud MonitoringAzure Monitor

Common Estimation Patterns

ProductLikely dominant estimateWhy
ChatWrites and fanoutMessages must reach recipients quickly.
News feedReads and ranking workMany users read more than they post.
Video streamingBandwidth and storageLarge media files dominate cost.
AnalyticsWrite ingestion and batch processingEvents arrive continuously and are processed later.
Rate limiterSmall fast reads/writesEvery protected request touches limiter state.

Beginner Mistakes

  • Using exact-looking numbers without stating assumptions.
  • Estimating users but not operations per user.
  • Ignoring peak traffic and only designing for average traffic.
  • Estimating request count but not payload size or storage growth.
  • Jumping to sharding before seeing whether the estimated scale actually requires it.

Guided Practice

Practice task

Estimate a simple photo sharing app: 1 million daily active users, 10% upload one photo/day, each photo averages 2 MB, each user views 50 photos/day. Estimate uploads/sec, views/sec, daily storage, and what design pressure dominates.

Sample Answer

EstimateCalculationResult
Uploads/day1M users x 10%100k photos/day
Upload QPS100k / 100k secondsAbout 1 upload/sec average
Views/day1M users x 5050M views/day
View QPS50M / 100k secondsAbout 500 views/sec average
Daily storage100k photos x 2 MBAbout 200 GB/day before replicas and thumbnails
Dominant pressureLarge media reads and storageUse object storage, CDN, thumbnails, and lifecycle policies.

Module 1 Wrap-Up

You now have the foundation for system design thinking: define the product behavior, clarify requirements, quantify non-functional requirements, and estimate scale before choosing architecture.

Before You Continue

  • You should be able to estimate average QPS from daily traffic.
  • You should be able to estimate storage growth from item size and retention.
  • You should understand why peak traffic matters.
  • You should be able to explain what design pressure dominates a product.
  • You are ready for Module 2, where requirements turn into APIs, services, and request flows.