Beginner Topic 6 of 51 Distributed Systems & Cloud
Latency vs Throughput
Time per request versus requests per time.
How it works
Latency is the time one operation takes from start to finish, such as the delay of a request, and throughput is the number of operations completed per unit time, such as requests per second. They are related but different: pipelining, batching and parallelism increase throughput without reducing latency, and queues add latency as utilization nears capacity. Percentiles such as p50, p95 and p99 describe latency distribution, and Little's law relates concurrency, throughput and latency.
Where it is used
System designers choose trade-offs: batching improves throughput for analytics, while interactive services optimize tail latency. Capacity planning needs both numbers.
Common pitfall
Averages hide tail latency, which users notice; a fan-out request is as slow as its slowest call. Pushing for maximum utilization makes latency explode. Optimizing throughput with larger batches can harm response time. Measure percentiles, use timeouts and hedged requests, keep headroom and distinguish network latency from processing time.
Where it fits in the course
Latency vs Throughput is topic 6 of 51 in Distributed Systems & Cloud, rated Beginner. It follows Vertical vs Horizontal Scaling. The next topic is Availability and Reliability.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Distributed Systems & Cloud quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Distributed Systems & Cloud quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Latency vs Throughput?
Where do people use Latency vs Throughput?
What is the most common mistake with Latency vs Throughput?
What should I learn before this topic?
How can I practice it?
Is Latency vs Throughput hard to learn?
How long does it take to learn Latency vs Throughput?
Which topics are related to Latency vs Throughput?
What should I study after Latency vs Throughput?
Related topics
- Vertical vs Horizontal Scaling (Distributed Systems & Cloud)
- Availability and Reliability (Distributed Systems & Cloud)
- Scalability (Distributed Systems & Cloud)
- Remote Procedure Calls (Distributed Systems & Cloud)