QPS stands for queries per second, a throughput rate that counts how many requests or queries a system handles (or is expected to handle) in one second; in system design it is used to size capacity, set performance targets, and reason about load, but it is only meaningful when you also know what counts as a "query," whether the figure is an average or a peak, and what latency and error constraints accompany it.
What the term measures and where it comes from
QPS is a rate, not a total. Ten thousand queries per second sustained for an hour is 36 million queries; the same 10,000 QPS figure describes a very different system depending on whether it is a one-second burst or a steady plateau. The unit appears across databases, search services, ad and API infrastructure, and load-testing reports, and it is closely related to RPS (requests per second) and TPS (transactions per second). The three are often used loosely as synonyms, but they are not identical in principle:
QPS traditionally counts queries — a read against a database, a search term submitted, a lookup served. It is common in search and database contexts. RPS counts HTTP or RPC requests at a service boundary. One user action can produce several requests (page, assets, API calls), so RPS can exceed the user-visible action rate. TPS counts transactions, which usually implies a unit of work with begin/commit semantics or a multi-step business operation. One transaction may issue many queries.
The practical lesson is definitional: before comparing any two QPS numbers, establish what a single unit is. A cache hit counted as a query, a batched write of 500 rows counted as one query, and a GraphQL request that fans out to twelve back-end calls all produce different QPS for the same underlying work.
Why system designers care
QPS is the workhorse input to capacity planning, and it connects several design decisions:
1: Sizing. If a single service instance can sustain roughly 2,000 QPS at acceptable latency, then a 20,000 QPS peak implies at least ten instances plus headroom for failure and growth. The arithmetic is trivial; the hard part is knowing the real per-instance ceiling and the peak, not the average. 2: Provisioning and autoscaling. Autoscalers often key on request rate (or a proxy such as CPU per request), so QPS targets translate directly into scaling thresholds. 3: Bottleneck analysis. A database might accept 5,000 simple primary-key reads per second but far fewer complex joins or writes; QPS by query type reveals which tier saturates first. 4: Rate limiting and quotas. API gateways express limits as requests per second or per minute; QPS is the natural unit for protecting downstream systems and enforcing fair use among tenants. 5: Cost modeling. Cloud pricing sometimes correlates with request counts, so QPS × duration approximates billable volume.
None of this works if QPS is treated as a single scalar for the whole system. Real systems have a QPS profile: reads versus writes, hot keys versus uniform access, small versus large payloads, cached versus uncached paths. A design that handles 50,000 QPS of cacheable reads may collapse at 5,000 QPS of uncached writes that each touch several rows and an index.
The average-versus-peak ambiguity
The single most common mistake is quoting an average QPS and designing to it. Traffic is bursty: diurnal cycles, marketing events, retries after an outage, and synchronized cron jobs all create peaks far above the mean. A service averaging 1,000 QPS might see 6,000 QPS at a daily peak and 30,000 QPS during a flash sale.
Designers therefore distinguish:
Average QPS over a window (hourly, daily) — useful for cost and total-volume estimates. Peak QPS — the maximum sustained rate the system must survive, which drives provisioning. Burst QPS — short spikes (seconds) that queues, buffers, or token buckets can absorb without provisioning for them permanently.
A useful discipline is to state the percentile and window: "p99 one-second QPS over the last 30 days was 8,400." Saying only "we do 8,000 QPS" hides whether that is a routine load or a rare spike, and it hides the latency target at that load. Throughput without a latency bound is incomplete: a system can report high QPS while responses take ten seconds, which is usually not what users or callers want.
QPS versus concurrency and latency
QPS, concurrency, and latency are linked by Little's Law: for a stable system, concurrency ≈ throughput × latency (with consistent units). If a service handles 1,000 QPS and each request takes 50 ms (0.05 s), the average number of in-flight requests is about 50. This relationship explains why the same QPS can demand very different resources:
At 1,000 QPS and 10 ms latency, about 10 requests are in flight — modest. At 1,000 QPS and 500 ms latency, about 500 requests are in flight — each holding a connection, thread, or memory buffer.
So raising QPS capacity by adding workers only works if latency stays bounded; if latency grows faster than throughput as load rises (the classic knee of the curve), adding load can reduce completed QPS even as offered load increases. Load tests should report the QPS–latency curve, not a single maximum, because the "maximum QPS" a system can absorb before degrading is often much higher than the QPS it can serve within a service-level objective.
Definitions matter: what counts as a query
Consider a product page load. A user opens one page; the browser fetches HTML, then images, CSS, JavaScript, and several API responses. At the edge, that could be dozens of HTTP requests. At the product service, it might be one gRPC call. At the database, it might be three queries: fetch product, fetch inventory, fetch reviews. Each layer reports a different QPS for the same user action.
This is not pedantry; it changes capacity math by orders of magnitude. A front-end CDN might serve 200,000 requests per second for traffic that generates 10,000 back-end QPS and 30,000 database queries per second. Teams that mix layers in one number ("our system does 200k QPS") invite bad comparisons with vendors or other teams measuring something else.
Batching further complicates counts. If an application batches 100 inserts into one database call, the database sees one query but the application processed 100 records. Reporting the database figure understates work; reporting the record figure overstates database load. The honest approach is to label the layer and the unit: "100,000 record writes per second, delivered as 1,000 batched statements per second."
Caching changes the ratio too. A 90% cache hit rate means back-end QPS is roughly one-tenth of incoming QPS, so a design that handles 100,000 QPS at the edge with a warm cache may need only 10,000 QPS of origin capacity — but a cold cache or a cache-key change can send the full rate to the origin. QPS planning must include cache-miss QPS as a separate figure.
Worked sizing example (illustrative)
Suppose a service must support 12,000 peak QPS of API requests under a 100 ms p99 latency target, with each request averaging two database queries (one cached, one not). Assume measurements show one application instance can sustain 1,500 QPS at that latency, and the database can serve 20,000 simple queries per second.
Application instances needed at peak: 12,000 ÷ 1,500 = 8, plus headroom. With N+2 redundancy and 30% growth headroom, 12 instances is a defensible starting point — but this assumes the 1,500 QPS figure was measured with realistic query mixes and payloads. Database load: 12,000 requests × 1 uncached query ≈ 12,000 queries per second, under the 20,000 ceiling but with limited margin for write bursts or heavy queries. Concurrency check: 12,000 QPS × 0.1 s ≈ 1,200 in-flight requests, which must fit within connection pools, thread limits, and memory budgets.
These numbers are illustrative, not a prescription. The point is the structure: state the unit, separate cached from uncached work, provision for peak not average, and verify against measured per-instance ceilings rather than assumed ones.
Where QPS stops being the right metric
QPS is a throughput measure, and throughput is not the same as goodput (useful, successful work) or user-perceived performance. Several situations call for different or additional metrics:
Heavy or variable query cost. Two queries per second of a ten-second analytical scan are trivial in QPS but devastating to a shared database. Cost-based metrics (rows scanned, CPU-seconds, bytes read) capture what QPS misses. Write-heavy systems. Writes often contend on locks and indexes; QPS of writes may be far lower than QPS of reads for the same hardware, and durability settings (synchronous replication, fsync) change the ceiling dramatically. Real-time and latency-sensitive systems. A voice or trading system may care about p99.9 latency at modest QPS, where raw QPS headroom is irrelevant. Correctness and consistency. A system can report high QPS while returning stale or wrong data; QPS says nothing about correctness. Cost efficiency. Requests per dollar or per vCPU can matter more than absolute QPS when comparing architectures.
Similarly, QPS is sometimes confused with bandwidth (bits per second) or IOPS (I/O operations per second on storage). They are distinct units with distinct bottlenecks: a service can be QPS-limited by CPU, bandwidth-limited by payload size, or IOPS-limited by disk. Diagnosing which limit binds is a core part of performance work.
Common confusions and how to avoid them
"QPS" versus "queries per second" in search and databases. In search engines, QPS often refers to search queries submitted; in databases, to statements executed. Both are legitimate; neither transfers automatically to the other.
Averages hiding tails. A daily average of 500 QPS with a five-minute burst of 20,000 QPS requires either autoscaling, queueing with backpressure, or admission control. Designing for 500 would fail; designing for 20,000 permanently might be wasteful. The resolution is burst-aware architecture: buffers, rate limiters, and scale-out policies.
Benchmark numbers without context. Vendor claims like "one million QPS" usually refer to a specific operation (e.g., point reads of small values on a large cluster) under specific consistency settings. Comparing such figures to your workload's mixed reads, writes, and joins is misleading. Ask what the unit of work was, what latency percentile was met, and at what cluster size and cost.
Conflating offered and served load. Offered QPS is what clients attempt; served QPS is what completes. Under overload, served QPS plateaus or drops while clients keep offering more, and retries can amplify offered load. Measuring both, plus error rates and queue depth, reveals overload that a single "QPS" figure conceals.
Unit and window errors. Per-second versus per-minute rates, and one-second spikes versus hourly averages, are not interchangeable. When converting, be explicit: 600 requests per minute is 10 per second on average but may arrive as 600 in one second.
Practical guidance for using QPS in design documents
Define the unit and layer explicitly: "database queries per second, counting each statement once, excluding cache hits." Report distributions, not just averages: peak, p99, and burst duration, over a stated window. Pair every QPS target with a latency objective and an error budget; throughput alone is not a service-level objective. Separate read and write, cached and uncached, and light and heavy query classes. Validate with load tests that reproduce realistic mixes and measure the throughput–latency curve, then provision for peak with failure headroom (losing a zone or an instance should not breach the target). Plan for overload behavior: rate limits, queues with bounded depth, load shedding, and retry budgets so that a QPS spike degrades gracefully rather than cascading.
In short, QPS is a useful, widely used rate for describing and sizing load, but it is a label whose meaning depends entirely on what is being counted, over what window, at what latency, and at which layer of the system. Treated with those qualifiers, it is one of the most practical numbers in a system design discussion; treated as a bare scalar, it is one of the easiest to misapply.