Skip to main content

API Platform Gateway Performance

You're reading API Gateway 1.1.0. The newest release is 1.2.0. Go to the newest release

The performance of the WSO2 API Platform Gateway was evaluated using the following APIs, both of which invoke a simple Netty HTTP Echo Service. As the name suggests, the Netty service echoes back any request it receives.

  • API without policies: An API configured with eight routes that directly forward requests to the backend service through the gateway.
  • API with mediation policies: An API configured with the same eight routes, with a Set Header policy applied to both the request and response flows.

The performance tests were conducted with 100, 500, 800, and 1000 concurrent users, where concurrent users represent multiple clients accessing the gateway simultaneously. To evaluate the impact of different message sizes, tests were performed using payload sizes of 50 B, 1 KiB, 10 KiB, and 100 KiB. The backend response delay was configured to 0 ms.

Apache JMeter was used as the test client. Each test scenario was executed for 15 minutes, including a 3-minute warm-up period. Performance metrics were calculated after excluding the warm-up period from the analysis.

The following key metrics were used to evaluate gateway performance:

  • Throughput: The number of API requests processed by the gateway per unit of time (requests per second).
  • Response time: The end-to-end time taken to process an API request. The complete response time distribution, including the 90th, 95th, and 99th percentile response times, was recorded and analyzed.

Deployment used for the test​

The diagram below shows the deployment architecture used for the performance tests documented here.

Performance test deployment architecture showing Apache JMeter client and servers, Netty HTTP backend, and WSO2 API Platform Gateway on separate EC2 instances connected in a test topology
ComponentEC2 Instance TypevCPUMemory (GiB)
Apache JMeter Clientc5.2xlarge816
Apache JMeter Serversc5.2xlarge816
Netty HTTP Backendc5.2xlarge816
WSO2 API Platform Gatewayc5.4xlarge1632
  • The operating system is Amazon Linux 2023.11.
  • Java version is Temurin JDK 21.

Performance test scripts​

All scripts used to analyze results are in the following repository.

Results​

The tests were executed using the user counts and payload sizes described above across two concurrency levels. For each concurrency level, the gateway runtime was allocated the corresponding CPU resources before deploying the API Gateway test configurations. The table below summarizes the test scenarios covered in this document.

Test ScenarioCPU Allocation (Gateway Controller)CPU Allocation (Gateway Runtime)Router ConcurrencyTest Results
1122Gateway runtime with two CPUs
2144Gateway runtime with four CPUs

Was this page helpful?