API Management
.
12
Mins Read

DigitalAPI API Gateway Benchmark: 31,700 Requests per Second on 2 vCPU

We benchmarked the DigitalAPI API Gateway on 2 vCPU: 31,721 proxied requests per second, sub-millisecond P95 latency at 50% load, and the measured cost of auth, quotas and routes.

Dhayalan Subramanian
Associate Director - Product Growth at DigitalAPI
.
02 December 2026
DigitalAPI API Gateway Benchmark: 31,700 Requests per Second on 2 vCPU
In this blog
Share blog

We benchmarked the DigitalAPI API Gateway on a 2 vCPU, 2 GiB budget, and it proxied 31,721 requests per second, with a P95 latency of 0.33 to 0.76 ms at 50% load.

With key authentication and quota enforcement switched on across 100 routes, our gateway still handled 23,142 requests per second on the same two vCPUs. It returned zero 429s, 5xx errors or network errors in any run.

Why we tested on a starter-pack setup: 2 vCPU and 2 GiB is close to the smallest footprint a team would run a gateway on in production, and it's cheap to rent. We chose it on purpose, so these results are a floor, not a ceiling. If you're a smaller team, they show what our gateway delivers on minimal hardware. If you run at enterprise scale, they're the per-node baseline you build on as you add cores and nodes, and the sizing section below shows how to plan from it.

Our engineering team ran the benchmark on 23 November 2026, using k6 against a fresh four-server setup. We're publishing every number, including the ones that look less flattering, along with the full method, so you can check our results and repeat the test yourself.

This post covers what we found, how much latency our gateway adds, what each plugin costs, exactly how we ran the test, what the numbers don't tell you, and how to reproduce it.

TL;DR

1. Throughput: 31,721 proxied requests/s on 2 vCPU, and 56,941 requests/s when the gateway answers with a mock.

2. Latency: P95 of 0.33 to 0.76 ms and P99 of 0.78 to 1.35 ms at 50% load, across every case.

3. Plugin cost: key authentication costs 9% on one route and 12% on 100 routes. Quota enforcement adds 10 to 11%. Going from 1 to 100 routes costs 0.5%.

4. Method: five 2-minute runs per case, zero errors, logging and TLS off, 100 virtual users.

What did our API gateway benchmark find?

Our benchmark found that the DigitalAPI API Gateway proxies 31,721 requests per second on 2 vCPU with sub-millisecond P95 latency at half load, and keeps roughly three-quarters of that throughput with authentication and quotas on. No run returned a single 429, 5xx or network error.

Headline resultValue
Max throughput, plain proxy (2 vCPU, 2 workers)31,721 requests/s (1 route)
Max throughput, mocked response (no upstream)56,941 requests/s
Max throughput with key authentication26,549 requests/s (1 route)
Max throughput, auth + quota on 100 routes23,142 requests/s
P95 latency at 50% load0.33 to 0.76 ms
P99 latency at 50% load0.78 to 1.35 ms
Run-to-run spread across five runs0.2% to 2.5%
429s, 5xx or network errors0 in any run
On smaller screens, swipe to see all columns →

For scale, k6 sending traffic straight to the NGINX upstream with no gateway reached 79,466 requests per second. That's 1.4 times our fastest gateway figure (mocking) and 2.5 times our fastest proxied figure, which shows the cost of putting any gateway in the request path.

What did we test?

We tested seven gateway cases plus a no-gateway baseline, covering mocking, plain proxying, key authentication, and quota enforcement on 1 route and on 100 routes. Each case ran at two worker profiles, so the matrix shows both raw speed and the cost of each feature.

CaseTargetPlugins on the APIWhat it isolates
0k6 straight to NGINX, no gatewayNoneThe ceiling of the test rig
1API-1, 1 route, no appsMockingGateway speed with no upstream call
2aAPI-1, 1 route, no appsNonePlain proxying
2bAPI-2, 100 routes, no appsNoneThe cost of route count
3aAPI-1, 1 route, 1 appKey authenticationThe cost of auth
3bAPI-2, 100 routes, 100 appsKey authenticationAuth with many keys and routes
4aAPI-1, 1 route, 1 appKey auth + quota enforcerThe cost of quotas
4bAPI-2, 100 routes, 100 appsKey auth + quota enforcerThe full policy stack at scale
Scroll sideways to see all columns →

The two worker profiles were:

  • W1: 1 vCPU and 1 worker. Its hyperthread sibling sat idle, so it got close to a whole physical core.
  • W2: 2 vCPU and 2 workers. Both vCPUs were hyperthreads of one physical core.

In the 100-route cases, route i was always called with app i's key, spread evenly, so every route and key was exercised.

How many requests per second can our gateway handle?

Our gateway handled between 23,032 and 56,941 requests per second on 2 vCPU, depending on which plugins were on. Each figure is the mean of five 2-minute runs at 100 virtual users.

DigitalAPI API Gateway benchmark: requests per second for seven test cases at one and two workers on 2 vCPU, from 56,941 req/s for mocking to 23,142 req/s with auth and quota on 100 routes
CasePluginsW1 (1 worker), req/sW2 (2 workers), req/sW2 ÷ W1
1Mocking40,09756,9411.42×
2aNone, 1 route22,43731,7211.41×
2bNone, 100 routes22,31929,6261.33×
3aKey auth, 1 route20,36026,5491.30×
3bKey auth, 100 routes19,72425,0531.27×
4aKey auth + quota, 1 route18,25823,0321.26×
4bKey auth + quota, 100 routes17,57623,1421.32×
Scroll sideways to see all columns →

Three things stand out:

  • Mocking shows our gateway's raw speed: with no upstream call, the gateway only parses, routes, and responds, so case 1 is the ceiling of the gateway itself.
  • Proxying cuts it by about 44%: each request now also reuses an upstream connection and waits for NGINX, which is the realistic case.
  • Policies cost less than proxying: adding auth and quotas on top of proxying takes throughput from about 30,000 to about 23,000 requests per second at W2.

The five runs per case varied by 0.2% to 2.5%, so the differences between cases are real, not noise. The one exception is cases 4a and 4b at W2, which are within 0.5% of each other: at that level the difference is inside the run-to-run spread.

How much latency does our gateway add?

At 50% load, our gateway's P95 latency was 0.33 to 0.76 ms, and its P99 was 0.78 to 1.35 ms across every case and profile. At 80% load, P95 rose to 0.40 to 5.48 ms. These are full round-trip times measured by k6, including the upstream call.

CaseProfileP95 at 50% loadP99 at 50% loadP95 at 80% loadP99 at 80% loadP95 at saturationP99 at saturation
1W10.360.910.652.032.833.41
1W20.330.780.400.963.364.05
2aW10.711.210.863.545.045.76
2aW20.651.150.832.436.126.93
2bW10.691.090.873.805.075.79
2bW20.651.350.812.556.657.62
3aW10.721.024.707.646.977.69
3aW20.671.021.153.357.369.66
3bW10.711.063.287.556.667.78
3bW20.691.011.263.367.7910.51
4aW10.761.164.418.697.838.87
4aW20.731.001.834.578.5812.01
4bW10.741.065.489.328.179.10
4bW20.731.092.064.698.4011.95
Scroll sideways to see all columns →

All values are in milliseconds, from k6's http_req_duration. The 50% and 80% columns are single fixed-rate runs at those shares of the mean throughput. Saturation is the mean of the five runs' percentiles.

At 80% load, the single-worker profile (W1) shows a clear jump once authentication is on, with P95 between 3.28 and 5.48 ms. The two-worker profile (W2) stays between 1.15 and 2.06 ms for the same cases. If you run authenticated traffic close to capacity, give the gateway more than one worker.

[fs-toc-omit]Why is latency at saturation so much higher?

At saturation, 100 virtual users send requests back-to-back, so most of the measured time is queueing, roughly 100 divided by throughput, not the cost of each request. That's also why W2 shows higher saturation latency than W1 while serving more requests. For capacity planning, the 50% and 80% columns describe real production behavior.

[fs-toc-omit]What does "no gateway" latency look like?

For reference, k6 sending straight to NGINX at about 79,000 requests per second measured a P95 of 1.93 to 2.02 ms and a P99 of 2.72 to 2.93 ms. Those figures are higher than our gateway's 50%-load numbers because that run was at full saturation, which again shows that latency depends more on load level than on the gateway.

What do authentication and quota plugins cost?

On our gateway, key authentication cost 9% of throughput on one route and 12% on 100 routes, quota enforcement added 10 to 11%, and going from 1 to 100 routes cost 0.5%. These figures come from the W1 profile, which was the steadier of the two.

Feature addedComparisonThroughput cost
100 routes instead of 1Case 2a → 2b0.5%
Key authentication, 1 routeCase 2a → 3a9%
Key authentication, 100 routes and 100 keysCase 2b → 3b12%
Rotating across 100 app keysCases 3a/4a vs 3b/4b3% to 4%
Quota enforcementCase 3 → 410% to 11%
On smaller screens, swipe to see all columns →

What this means in practice:

  • Route count is close to free: our gateway with 100 routes is almost as fast as with 1, so splitting APIs into many routes for clarity costs little.
  • Authentication and quotas cost about the same: each takes roughly a tenth of throughput. Together they cost about a fifth, which is still cheaper than doing auth and rate limiting in every backend service.
  • Many keys cost little extra: rotating across 100 app keys costs only 3% to 4% more than reusing one.
  • Quotas are counted locally: our quota enforcer counts on the gateway itself. In this test, the limit was 10⁹ requests per minute per app, so it was never reached. A quota that called out to a shared store on every request would cost more.

For a wider look at what gateway plugins do, see our guide to API gateway plugins.

Why do two workers give less than twice the throughput?

Two workers gave 1.26 to 1.42 times the throughput of one because both vCPUs on our test server were hyperthreads of the same physical core. Two hyperthreads share one core's execution units, so they can't double the work.

This matters when you read any gateway benchmark, including ours. A "2 vCPU" result on hyperthreaded cloud instances is often closer to one physical core than two. On a server where each vCPU maps to its own physical core, scaling from one worker to two would usually be closer to linear. Always check what a vCPU count means in physical cores before comparing numbers.

How did we run the benchmark?

We ran the benchmark on four servers on a private network, one per role, with our gateway capped at 2 vCPU and 2 GiB. The full run, with both worker profiles for every case, took about 4.7 hours.

[fs-toc-omit]Which machines did we use?

RoleMachineWhat ran on it
System2 shared vCPU, 4 GBOur control plane with Postgres, the admin API, etcd, Vault, and Redis
Gateway4 dedicated vCPU, 16 GBOur gateway data plane only, capped at 2 vCPU and 2 GiB on cores 2 to 3
Upstream2 dedicated vCPU, 8 GBNGINX returning a 10-byte body
Load generator8 shared vCPU, 16 GBk6 1.6.1, started over SSH, plus CPU samplers
On smaller screens, swipe to see all columns →

[fs-toc-omit]How was our gateway configured?

  • Platform: Docker Compose on its own server with host networking, no Kubernetes.
  • Cap: 2 vCPU and 2 GiB of memory.
  • Authentication: our key authentication plugin, with the app key sent in an apikey header.
  • Quota: our API product quota enforcer, counted locally on the gateway.
  • Switched off: logging, metrics, and TLS. Traffic was plain HTTP inside a private network.

[fs-toc-omit]How did we run each case?

Each case, at each worker profile, took about 18 minutes, of which 14 minutes were measured traffic:

  1. Warm-up: 30 seconds at 100 virtual users.
  2. Saturation test: five 2-minute runs at 100 virtual users, with 15-second gaps.
  3. Fixed-rate test: a 30-second warm-up, then one 2-minute run at 50% and one at 80% of the mean saturation throughput, using k6's constant-arrival-rate executor. Fixed-rate runs used the same 100 connections.

We ordered the cases so each API revision was deployed only once: the no-auth cases first, then the single-app cases, then the 100-app cases, with the no-gateway baseline at the start and end. Each deploy took 1 to 5 seconds, and creating or deleting the test apps took 10 to 20 seconds. Before the full run, we did a dry run of cases 1, 3a and 4b on two workers with 10-second runs.

What doesn't this benchmark tell you?

This benchmark shows our gateway's speed under controlled conditions, not your production numbers. We made several choices that kept the test clean and pushed the numbers higher than a typical production setup would see.

  • TLS was off: encryption adds CPU cost on every connection, especially with short-lived connections.
  • Logging and metrics were off: most production deployments ship access logs and metrics, which take CPU.
  • The response was tiny: a 10-byte body. Larger payloads and request bodies take longer to move through the gateway.
  • The quota was local: a distributed quota that syncs across gateway nodes on each request costs more.
  • Both vCPUs were hyperthreads of one core: dedicated physical cores would scale differently.
  • It's not a vendor comparison: we tested our own gateway. Other vendors' benchmarks use different hardware, payloads, and settings, so their numbers can't be compared line by line with ours.

Treat these numbers as an upper bound for this hardware and configuration, then re-test with your own TLS, logging, payloads, and policies.

How can you reproduce this benchmark?

You can reproduce our benchmark by isolating the gateway on its own machine, driving it with k6 until its CPU saturates, and only counting runs where the load generator and upstream had spare capacity. The same method works for comparing our gateway with any other on your own hardware.

  1. Put each role on its own machine: gateway, upstream, and load generator should not share CPUs.
  2. Measure the ceiling first: send load straight to the upstream with no gateway. No gateway can beat this number.
  3. Cap the gateway's resources: fix vCPU and memory so results are repeatable.
  4. Warm up before measuring: caches and connection pools need a few seconds.
  5. Run each case several times: five runs let you see the spread and catch outliers.
  6. Saturate, then test at fixed rates: saturation gives maximum throughput. Fixed rates at 50% and 80% give realistic latency.
  7. Add one feature at a time: proxy, then auth, then quotas, so each cost is isolated.
  8. Check the bottleneck: the gateway's CPU should be near full, the load generator's and upstream's well below it, and errors at zero.
  9. Report percentiles, not averages: P95 and P99 from k6's http_req_duration show what slow requests look like.

A minimal k6 script for a saturation run against our gateway:

import http from 'k6/http';

export const options = { vus: 100, duration: '2m' };

export default function () {
  http.get('http://gateway.internal/orders', {
    headers: { apikey: __ENV.APP_KEY },
  });
}

And for a fixed-rate run at, say, 11,500 requests per second:

export const options = {
  scenarios: {
    fixed: {
      executor: 'constant-arrival-rate',
      rate: 11500,
      timeUnit: '1s',
      duration: '2m',
      preAllocatedVUs: 100,
      maxVUs: 100,
    },
  },
};

If k6 can't hold the requested rate, it reports dropped iterations. Treat any run with more than 1% dropped as limited by the load generator. For evaluation criteria beyond speed, see the API gateway checklist for enterprise teams.

How do you size a gateway from these numbers?

Size our gateway by taking the throughput for the policies you'll run in production, planning to use about half of it at peak, and then allowing for TLS, logging, and larger payloads. Running at 50% load keeps latency in the sub-millisecond range shown above and leaves room for spikes.

A worked example using our results:

StepValue
Throughput with auth and quota, 2 vCPU (case 4b, W2)~23,000 requests/s
Plan for 50% utilization at peak~11,500 requests/s per 2 vCPU node
Expected peak traffic20,000 requests/s
Gateway capacity needed before TLS and logging2 nodes of 2 vCPU (20,000 ÷ 11,500, rounded up)
On smaller screens, swipe to see all columns →

Then re-test with TLS and logging on to find your real per-node figure, and add nodes for redundancy. For background on where the gateway sits in your architecture, see API gateways in microservices, and for what clients see when limits are hit, read what "API rate limit exceeded" means.

What does this mean if you're evaluating our gateway?

It means speed is unlikely to be your bottleneck: about 23,000 authenticated, quota-checked requests per second on 2 vCPU is more than most APIs need per node. That frees your evaluation to focus on what separates gateways day to day: how policies, keys, quotas, and developer onboarding are managed.

The DigitalAPI API Gateway enforces key authentication and API product quotas at the edge, as tested here, while products, plans, and keys are managed centrally from our control plane. It also plugs into the same catalog and developer portal DigitalAPI uses to federate Apigee, Kong, AWS, and Azure gateways, so you can run it for new APIs without migrating the ones you already have. See the full feature set on the DigitalAPI API Gateway page, or compare options in our guide to the best API gateways.

FAQs

[fs-toc-omit]How many requests per second can the DigitalAPI API Gateway handle?

On 2 vCPU and 2 GiB, the DigitalAPI API Gateway proxied 31,721 requests per second with no plugins and 23,142 with key authentication and quota enforcement across 100 routes. Those figures used a 10-byte response with TLS and logging off, so treat them as an upper bound for that hardware.

[fs-toc-omit]Why did you benchmark the gateway on only 2 vCPU?

We used a 2 vCPU, 2 GiB starter configuration on purpose. It's close to the smallest footprint a team would run in production, so the results show the floor of what the DigitalAPI API Gateway delivers. Smaller teams can see what minimal hardware gets them, and larger teams can treat the numbers as a per-node baseline and add cores and nodes from there.

[fs-toc-omit]How much latency does the DigitalAPI API Gateway add?

At 50% of maximum throughput, full round-trip P95 latency was 0.33 to 0.76 ms and P99 was 0.78 to 1.35 ms, including the upstream call. Latency rises as load approaches saturation, mostly because requests queue, not because each request takes longer to process.

[fs-toc-omit]How much does authentication slow down an API gateway?

In our benchmark, key authentication reduced throughput by 9% on one route and 12% on 100 routes with 100 different app keys. Quota enforcement added another 10 to 11%. Together, authentication and quotas cost about a fifth of plain proxy throughput.

[fs-toc-omit]What is P95 and P99 latency?

P95 latency is the time within which 95% of requests complete, and P99 is the time within which 99% complete. They show the experience of slower requests, which averages hide. Gateway benchmarks should report both at fixed load levels such as 50% and 80% of maximum throughput.

[fs-toc-omit]How was the DigitalAPI API Gateway benchmark run?

We ran it on 23 November 2026 on four servers: one each for the control plane, the gateway, an NGINX upstream, and k6. The gateway was capped at 2 vCPU and 2 GiB. Each case ran five 2-minute saturation runs plus fixed-rate runs at 50% and 80% load, with zero errors in any run.

[fs-toc-omit]Can I compare these results with other API gateway benchmarks?

Not line by line. Vendors use different hardware, vCPU types, payload sizes, plugins, TLS and logging settings, and load tools. The fair comparison is to run the same test, on the same machines, with your own policies and payloads, which our published method makes possible.

[fs-toc-omit]Does this benchmark show how the gateway will perform in production?

Only partly. It gives an upper bound for this hardware and configuration. Production adds TLS, logging, larger payloads, distributed quotas, and real traffic patterns, which all lower throughput. Re-run the benchmark with your production settings before sizing your gateway fleet.

Final word

We published this benchmark the way we'd want to read one: every number, the full method, and the limits of the test. Our gateway completed every run without a single error, and we've been clear about what the test leaves out: TLS and logging off, a tiny payload, and two vCPUs on one physical core.

The best next step is to run the same test on your own setup with your own policies. The numbers you get will be the ones worth planning around.

Want to see our gateway on your own traffic?

Book a demo and benchmark the DigitalAPI API Gateway with your policies.
About the author
Dhayalan Subramanian

Dhayalan Subramanian is Associate Director, Product Growth at DigitalAPI, where he leads go-to-market and product growth for the company’s multi-gateway API management platform. His work focuses on helping large enterprises and mid-market cloud companies consolidate APIs across AWS, Azure, Apigee, Kong, MuleSoft, and other gateways into a single control plane for governance, discovery, monetization, and agent consumption.

‍

Dhayalan brings 14+ years of experience across product strategy, enterprise architecture, and engineering leadership. Earlier in his career, he held senior roles at Encora (as Associate Architect and Technical Manager), Mindtree (Technology Lead), Tech Mahindra (Technical Lead), and Primus Analytics, where he designed integration frameworks and delivered enterprise-grade digital platforms for global customers.

‍

At DigitalAPI, he works directly with platform, integration, and developer experience leaders at Fortune 500 organizations to operationalize unified API catalogs, developer portals, and MCP-ready APIs. He writes regularly on API developer experience, API governance, and AI agent architectures.

Become AI-ready
Make every API agent-callable.
An 8-week pilot. We connect to your gateways, ship MCP-callable APIs, and onboard your first agent.
0 rip-and-replace
Same auth, same audit
Live in production in 8 weeks
Get started

One email a fortnight. Worth opening.

A short digest of what we're writing, what we're learning from customers, and the handful of links you'd actually want from us. No tracking pixels.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.