MicrolearnENPTES

Latency and throughput

Lesson 2 of 40 · Sys.Micro

Two different meanings of “fast”, and why a busy system gets slow.

Check yourself

“Make the API faster” — but which faster?

One team means “each call should return sooner”. Another means “we need to handle Black Friday”. Those are different properties, and improving one can hurt the other.

Latency is how long one request takes. Throughput is how many requests finish per second.

Latency = time for one request; throughput = requests per second

Why queues explode as utilization nears 100%

Little’s law: concurrency = rate × latency

Scaling out raises throughput, not single-request speed

Check yourself

An API at 95% utilization has a p99 of 900 ms, but one request alone takes 50 ms. What fixes p99 fastest?

Do it in the browser: a real system design tool, a short mission and instant feedback. No install.

Start this lesson — free
← How a request travelsBack-of-the-envelope math →

All lessons · Sys.Micro