QamoosTech
Architecture & DesignScaling and performanceIntermediate

Latency vs Throughput

PronunciationLAY-ten-see versus THROO-put

Definition

Latency is how long one request takes. Throughput is how many requests the system handles per second.

Where you hear it

Performance testing and system design interviews.

Examples

  • The latency is only 80 ms, but throughput drops under heavy load.
  • Adding servers improves throughput, not latency.
  • Batching the writes raised throughput, but each single write now waits longer.

Common mistake

Mixing them up. A system can have low latency and low throughput, or the opposite.

Don't confuse with

Latency is often confused with response time; while they are related, latency refers specifically to the time taken for a request to travel, whereas response time includes the processing time on the server.

Say it at work

  • In a meeting or chatWe need to optimize our database queries because the current latency is hurting the user experience, even though our total throughput is fine.
  • In an email or ticketPlease investigate why the system throughput decreases significantly when we increase the number of concurrent users during peak hours.