About Us Contact Us Write for Us Advertise
Home > System Design > Fundamentals > Latency Numbers Every Engineer Should Know (with Intuition)
System Design › Fundamentals

Latency Numbers Every Engineer Should Know (with Intuition)

The famous latency numbers — cache, RAM, SSD, disk, and network round trips — explained by orders of magnitude, with a vivid mental model and how each one drives real system design decisions.

Shiv Pandey
Shiv Pandey
Oct 07, 2026 | 64 views
Latency Numbers Every Engineer Should Know (with Intuition)

🔵 Fundamentals · Fresher-friendly → 🟠 senior nuance

Why is reading from memory "fast" and reading from disk "slow" — and how slow, exactly? Great engineers carry a rough mental table of these numbers, because system design is really a series of choices about where data lives, and each place has a wildly different speed. This is the famous "Latency Numbers Every Programmer Should Know," and you don't need to memorise them precisely — just the orders of magnitude. Get those, and half of design becomes intuitive. Let's build the picture.

The one idea to hold onto: memory, SSD, disk, and the network differ in speed by factors of thousands, not a little bit. Knowing the rough scale — RAM is ~microseconds, disk is ~milliseconds, a cross-country network trip is ~100+ ms — tells you instantly why we cache, why we avoid disk on the hot path, and why "just one more network call" can be expensive.

The units, first

These numbers span tiny fractions of a second, so the units matter:

  • Nanosecond (ns) = one billionth of a second (10⁻⁹).
  • Microsecond (µs) = one millionth (10⁻⁶) = 1,000 ns.
  • Millisecond (ms) = one thousandth (10⁻³) = 1,000 µs = 1,000,000 ns.

Each step up is 1,000×. So "µs vs ms" isn't "a bit slower" — it's a thousand times slower. Holding that scale in your head is the whole skill.

The numbers that matter (rounded)

Operation Rough time In human terms
Read from CPU cache (L1/L2) ~1 ns instant
Read from main memory (RAM) ~100 ns very fast
Read from SSD ~100 µs (0.1 ms) ~1,000× slower than RAM
Round trip in same data centre ~0.5 ms a network hop nearby
Read from spinning disk (seek) ~10 ms ~100,000× slower than RAM
Round trip across the world ~150 ms you can feel it
Log scale — each block is ~1000× the previous Cache~1 ns RAM~100 ns SSD~100 µs Same-DC net~0.5 ms Disk~10 ms Worldwide~150 ms ← faster / closer slower / farther →

The intuition: memory vs disk vs network

🟠 A vivid way to feel it — scale everything up so 1 ns = 1 second. Then reading from RAM takes ~2 minutes, an SSD read takes ~1.5 days, a disk seek takes ~4 months, and a round trip across the world takes ~5 years. The gaps are staggering. That's why "just read it from disk" or "just add another remote call" are not free — at scale they dominate your latency.

Why these numbers drive design

🟠 Almost every classic design decision falls out of this table:

  • Why we cache: RAM is ~1,000× faster than SSD and ~100,000× faster than disk. Keeping hot data in memory (or Redis) instead of hitting the database is the single biggest speed win.
  • Why we minimise network calls: a cross-region round trip (~150 ms) can dwarf all your compute. Chatty designs that make many sequential remote calls feel slow — batch them or fetch in parallel.
  • Why data locality matters: keeping services and data in the same data centre (~0.5 ms) versus across the world (~150 ms) is a 300× difference. It's why we use CDNs and regional deployments.
  • Why SSDs replaced disks for databases: ~100 µs vs ~10 ms is a 100× win on every random read.

Using them in an interview

🟠 You won't be quizzed on exact nanoseconds, but dropping the right order of magnitude at the right moment is powerful: "That lookup can't hit disk on the hot path — a disk seek is ~10 ms, so at 10,000 QPS we'd fall over; I'll serve it from an in-memory cache at ~100 ns." Or: "Two sequential cross-region calls is ~300 ms of pure network — I'd parallelise them or move the data closer." That's you turning a rough table into concrete design decisions — exactly the instinct these numbers are meant to build.

The interview-ready summary

"I keep the rough latency ladder in mind: CPU cache ~1 ns, RAM ~100 ns, SSD ~100 µs, a same-data-centre round trip ~0.5 ms, disk seek ~10 ms, and a cross-world round trip ~150 ms — each big step is about 1,000×. That's why I cache hot data in memory instead of hitting disk, minimise and parallelise network calls, and keep data close to compute. I don't memorise exact figures — I use the orders of magnitude to decide where data should live." That framing shows you reason quantitatively, which is the whole point."

What to read next

← Resilience patterns · Back to the System Design hub →

Related Articles

Resilience: Timeouts, Retries & Circuit Breakers Explained
System Design › Fundamentals

Resilience: Timeouts, Retries & Circuit Breakers Explained

Object Storage & Blobs (S3): Where Files Really Live
System Design › Fundamentals

Object Storage & Blobs (S3): Where Files Really Live

Bloom Filters Explained: The Space-Saving Magic Trick
System Design › Fundamentals

Bloom Filters Explained: The Space-Saving Magic Trick

WebSockets vs Long Polling vs SSE: Real-Time on the Web
System Design › Fundamentals

WebSockets vs Long Polling vs SSE: Real-Time on the Web