Throughput
Пропускная способность
A measure of how much work a system completes in a given time, such as successful API requests per second, records written per minute, or bytes transferred per second.
What throughput tells you
Throughput is the rate at which a system gets work done. A web service might report successful responses per second, a database committed transactions per second, and a data pipeline rows loaded per minute. Observed throughput is not the same as capacity: a service completing 100 requests per second may be able to handle much more if it is only receiving 100. When someone quotes a maximum, ask what workload and performance limits that number assumes.
Count completed work at the right boundary
Choose the unit, the measurement window, and the point at which work counts as done. For a pipeline that imports customer records, reading a message from a queue isn't necessarily completion. If the goal is to populate a database, count records successfully committed to it. If 90,000 records are committed over three minutes, the average throughput for that window is 500 records per second. If retries can write the same record twice, count distinct records when you want to measure useful work rather than write activity.
Example: keeping up with a queue
Suppose a pipeline receives 700 messages per second and commits 500 records per second. If every message produces one record and none are dropped, unfinished work grows by about 200 messages per second across the queue and workers. Adding workers helps only if worker capacity is the constraint. If the database is already at its write limit, extra workers won't raise end-to-end throughput and may increase contention. Check where the work is waiting before deciding what to scale.
Throughput, latency, and incoming traffic
Throughput asks how many operations finish per second. Latency asks how long one operation takes from start to finish. Batching writes can improve throughput by reducing the overhead per record, yet increase latency because early records wait for the batch to fill. Requests per second (RPS) is a unit, not a guarantee that requests succeeded: an ingress dashboard may show arrivals, while an application dashboard may show completions. Label both rates so you can tell demand from completed work.
How it comes up in interviews
In a system design interview, explain how you'd measure sustainable throughput rather than quoting the highest number on a load-test chart. Use a realistic mix of reads and writes, increase the offered load in steps, and measure after warm-up. Look for the highest successful completion rate the system can maintain without a growing backlog or unacceptable latency and errors. A useful result is specific: “With this workload, the service sustains 800 successful requests per second with p95 latency below 200 ms and no growing queue.” Here, p95 below 200 ms means at least 95% of measured requests took less than 200 ms.