Skip to content

Throughput vs latency: what is the difference?

Throughput measures how much work flows through a system, latency how long each single request takes.

Throughput is how many units of work a system completes in a given time window, for example requests per second: an aggregate volume measure. Latency is how long it takes between sending a single request and receiving its response: a per-event measure, not a convenient average. The two often pull in opposite directions: a system can raise throughput by batching requests into larger groups, which almost always increases the latency of each one, because every request waits for the batch to fill. A system can lower latency by dedicating more resources to each single request, which reduces throughput because those resources process nothing else in the meantime. Optimizing one without stating what happens to the other is the most common source of an architecture that looks fast in aggregate load tests but feels slow to every single user, or the reverse.

See also: BackpressureThe mechanism by which a system signals upstream that it cannot keep pace, instead of collapsing silently.

Why the trade-off is almost always unavoidable

The formal link between the two is Little's Law (Little, 1961): the average number of requests in a system equals throughput multiplied by average latency. The structural tension comes from queueing theory: as the arrival rate approaches service capacity, waiting time grows without bound, so raising throughput without increasing capacity means more requests queued at the same time, and more queue means higher latency for each one, not a free lunch. Batching, connection pooling, and parallelizing with more workers are all real levers to raise throughput, but they move the cost onto the queue: when arrivals exceed processing capacity, the queue grows and latency with it, up to the point where an explicit backpressure mechanism is needed to avoid collapsing. There is also a measurement error that precedes the design one: average latency almost always lies, because it hides the tail of the distribution. A system with an average latency of 50 milliseconds can have a p99 of 800 milliseconds, meaning one request in a hundred waits at least sixteen times the average: fine for a product catalog, but for a checkout it is the number that decides whether the system is reliable.

An enterprise example

A logistics platform processes orders in two different ways depending on the channel. Marketplace orders arrive at dozens per second and are accumulated into batches of five hundred before being written to the central warehouse system: throughput is high, per-order latency can reach a few seconds, and that is acceptable because no human is waiting on that single write. Mobile app orders, instead, must confirm product availability in real time while the customer is on the payment screen: here the priority flips, the request skips every batching queue and is served by a dedicated path that accepts a much lower per-worker throughput in order to keep p99 under two hundred milliseconds. Treating both flows with the same architecture, optimized for only one of the two goals, produces either a checkout that feels slow or a warehouse batch that cannot hold up during a Black Friday spike.

Why it matters for decision makers

The right question is not "is the system fast", but "which of the two quantities actually matters in this use case": a nightly data load lives on throughput, and optimizing per-record latency for it is wasted engineering time. A synchronous interface with a waiting user lives on latency, and an excellent aggregate throughput does not make up for an out-of-control p99. Declaring which of the two is the primary goal for each path, before choosing batching, parallelism or queuing, avoids discovering it mid-incident. When the primary goal becomes a contractual commitment to the business, the right measure is SLOs on percentiles, not the average: that is where throughput and latency stop being technical numbers and become a decision someone signed off on.

  • BackpressureThe mechanism by which a system signals upstream that it cannot keep pace, instead of collapsing silently.
  • SLI, SLO, and SLAThe chain that measures a service (SLI), gives it an internal threshold (SLO), and turns it into a contract (SLA).
  • AI execution throughputAI execution throughput measures how many AI-assisted work cycles an organization completes within a defined period, from the initial request to the outcome.
  • Garbage collectionThe mechanism by which a runtime frees memory that is no longer reachable, and the pauses that hit p99 latency.
  • Event-driven architecture (EDA)Services exchanging facts that already happened through a broker, instead of calling each other directly and synchronously.

See it in the universe

If it reminds you of a system nobody dares touch anymore, that is what I put back in order.

See Software Rescue

Or write to me.