Latency, throughput and bandwidth

Three numbers that are often confused, and why a fast network can still feel slow.

On the roadmap:Beginner · step 1: Think like a designer

Lesson 1 of 23 · 6 min read · quiz · exercise

Three different questions

  • Latency: how long does one request take from start to finish? Measured in milliseconds.
  • Bandwidth: how much could the pipe carry per second? A capacity, measured in bits per second.
  • Throughput: how much actually flows per second, measured in requests or bytes per second. It is at most the bandwidth, and often much less.

A motorway analogy: bandwidth is the number of lanes, latency is the time one car needs to drive the length, and throughput is how many cars arrive per hour. Widening the road (more lanes) lets more cars through but does not make any single car arrive sooner.

Why it matters in design

Many speed problems are really latency problems, and more bandwidth will not fix them:

SymptomLikely causeLever
Page makes 80 small requests and feels slowRound-trip latency adds upFewer requests, bundling, HTTP/2, caching
Users far away complainDistanceCDN, regional servers
Big downloads are slowThroughput or bandwidthCompression, parallel transfers, bigger pipe
System is slow only at busy timesThroughput limitScale out, queue, shed load

An Ethernet switch: every network hop adds a little latency, and the hops add upImage: Syced · CC0 · Source · Wikimedia Commons: Peabird Ethernet switch in 2003

Where the time goes

Figure SDA-CORE-01-1 · A latency budget for one page · © forcsguy.com

Tail latency

Averages hide the worst experiences. If 1% of requests take 3 seconds, a page that makes 50 calls will hit one of those slow calls most of the time. Track percentiles (p95, p99), and design to keep the slowest requests under control with timeouts and hedged requests.

Latency budget

Break a target (say 300 ms for a page) into a budget: network 80 ms, application 60 ms, database 50 ms, rendering 80 ms, slack 30 ms. When the total exceeds the target you know where to cut.

Real-world reading

Check your understanding

Question 1 of 3

0 correct so far

A road has many lanes (high bandwidth) but a long length. A single car still takes a long time. Which term describes the time for one car?

© 2026 forcsguy.com. Original lesson text and diagrams. Books and sites linked above belong to their authors.