Skip to content

Latency numbers

Build a request latency budget, distinguish service time from waiting, and calculate sequential and parallel critical paths.

22 min8 steps

By the end you can
  • Distinguish service time, queueing, propagation and serialization
  • Calculate latency for sequential calls and parallel joins
  • Choose an optimization from a measured request trace

Keep the orders of magnitude straight

1 ms = 1,000 µs = 1,000,000 ns. A 5 ms operation is 5,000 µs. State the number you assume.

  • CPU cache1 ns
  • Main memory100 ns
  • SSD read100,000 ns
  • Same-datacenter round trip500,000 ns
  • Disk seek10,000,000 ns
  • Cross-region round trip80,000,000 ns

Log scale: each gridline step is 10×.

Teaching estimates only. Hardware, payload, warmth and load change them.

A trace reports 2,500 microseconds. How should you label it in milliseconds?

Answer this step to continue.

What this lesson simplifies

  • All numerical latencies are illustrative inputs, not hardware benchmarks or vendor guarantees.
  • Critical-path calculations use fixed durations and omit contention, loss, retries and cancellation.

Sources

  1. Jeffrey Dean, Luiz André Barroso. The Tail at Scale, 2013.
  2. W. Eddy, editor. Transmission Control Protocol (TCP) (RFC 9293), 2022.

Reviewed by K1 content review on . Revision 1.