What is throughput? RPS, QPS and how much a system can handle

Throughput is how much work a system finishes per second. Here is how it's measured (RPS, QPS, MB/s), how it relates to latency, why systems slow down sharply near their limit, and the main ways to raise it.

Two toll plazas seen from above. On the left, one toll booth with a long line of cars, labelled one lane, about 6 cars a minute. On the right, four toll booths side by side with short lines, labelled four lanes, about 24 cars a minute. Each car still takes about 10 seconds at its booth.
Fig. 1 — More toll booths don't make each car faster. They let more cars through per minute. That is throughput.

At a highway toll plaza, each car takes about 10 seconds at the booth. With one booth open, about 6 cars get through every minute. Open four booths and about 24 cars get through, even though each car still spends 10 seconds at its booth.

The 10 seconds per car is the latency. The number of cars per minute is the throughput. They’re different numbers, and system designers need both. This guide explains throughput, how it’s measured, and how to raise it.

What is throughput?

Throughput is how much work a system completes in a given amount of time.

Depending on what the system does, it’s measured in different units:

  • RPS (requests per second): for web servers and APIs. “The API handles 2,000 RPS.”
  • QPS (queries per second): the same idea, often used for databases and search. People often use RPS and QPS interchangeably.
  • TPS (transactions per second): for payment and banking systems.
  • Messages per second: for message queues and streaming.
  • MB/s or Gbps (data per second): for networks, disks and file transfers. When people talk about a network’s maximum data rate, they often call it bandwidth.

Throughput is about completed work. If 5,000 requests arrive each second but only 3,000 finish, your throughput is 3,000, and the other 2,000 are piling up somewhere.

Throughput vs latency

Latency Throughput
Question it answers How long does one request take? How many requests finish per second?
Unit Milliseconds Requests (or bytes) per second
Toll plaza 10 seconds per car 24 cars per minute
Improved by Doing each request faster Doing more requests at once

They’re linked by a simple and useful rule called Little’s Law:

Requests in progress = throughput × latency

If your service handles 1,000 requests per second and each takes 0.2 seconds, then about 1,000 × 0.2 = 200 requests are in progress at any moment. That tells you roughly how many threads, connections or workers you need. If each server can hold 50 requests in progress, you need at least 4 servers. This kind of arithmetic is the heart of back-of-the-envelope estimation.

Why systems slow down sharply near the limit

Every system has a maximum throughput, set by its bottleneck. What surprises people is what happens to latency as you get close to that maximum.

A line chart. The horizontal axis is load, as a percentage of maximum throughput, from 0 to 100. The vertical axis is latency. The line stays low and flat from 0 to about 60 percent, starts to bend upward around 70 to 80 percent, and shoots almost straight up past 90 percent. A shaded band from 60 to 75 percent is labelled a comfortable target.
Illustrative curve. Latency stays flat until the system gets busy, then rises steeply as queues form. Plan to run well below the maximum.

At low load, requests rarely wait; latency is just the work itself. As load rises, requests increasingly arrive while others are still being served, so they queue. Near 100% busy, the queue grows very fast, and latency shoots up. Push past the limit and the queue grows without end until things time out or crash.

That’s why teams plan to run at a comfortable fraction of their limit (often somewhere around 60–75% at normal peak) to leave headroom for spikes and for a server failing.

How to increase throughput

1. Do more in parallel. Add more servers behind a load balancer, more consumers on a queue, more threads or workers. This is the toll-booth fix. See horizontal scaling.

2. Make each request cheaper. Less work per request means more requests per second from the same machines. Add database indexes, cache results (caching), avoid repeated work.

3. Batch. Writing 1,000 rows in one go is far cheaper than 1,000 separate writes. Sending messages in batches cuts per-message overhead. The trade-off is a little more latency for each item, because items wait for the batch to fill.

4. Go asynchronous. Put slow work on a queue so web servers return quickly and can take the next request.

5. Spread the data. If the database is the limit, use read replicas for reads and sharding to split writes.

6. Fix the bottleneck first. Raising throughput anywhere else is wasted until the slowest step improves.

Common misconceptions

“Lower latency means higher throughput.” Not necessarily. A system can be fast per request but handle few of them, or slow per request but handle many in parallel.

“More bandwidth fixes slowness.” Bandwidth is throughput for data. If requests are small and the delay comes from distance or queues, more bandwidth won’t help.

“We should run servers at 100% to save money.” At 100%, queues build and latency explodes. Some headroom is what keeps the service fast and safe.

Key takeaways

  • Throughput is how much work finishes per second: RPS, QPS, TPS, MB/s.
  • Latency is how long one request takes; throughput is how many finish per second.
  • Little’s Law: in-progress requests = throughput × latency. Use it to size servers and pools.
  • Near the limit, latency rises sharply, so plan with headroom.
  • Raise throughput with parallelism, cheaper requests, batching, async work, spreading data and fixing the bottleneck.

Frequently asked questions

What is throughput in simple words?

Throughput is how many tasks a system can finish in a certain time, like how many cars pass through a toll plaza per minute or how many requests a website handles per second.

What is the difference between throughput and latency?

Latency is the time one request takes. Throughput is the number of requests completed per second. Adding more servers usually raises throughput without making each request faster.

What is the difference between RPS and QPS?

RPS means requests per second and QPS means queries per second. Both measure throughput; RPS is common for web servers and APIs, QPS for databases and search, but people often use them interchangeably.

What is Little’s Law?

Little’s Law says the average number of items in a system equals the arrival rate times the average time each spends inside. For a service: requests in progress = requests per second × seconds per request.

How do you increase throughput?

Run more copies in parallel, make each request do less work, batch small operations, move slow work to background queues, spread data across replicas or shards, and fix the bottleneck first.

Comments

LEAVE A COMMENT
No sign-up. Comments appear after a quick review.