
2) Preparations for Performance and Load Testingย
As mentioned earlier, the API Gateway acts as the entry point for API requests and responses. The subject of performance and load testing is the API Gateway with proxy functionality.
The objective of the test is to determine how many requests can be processed per second and how much system resources (CPU, Memory) are utilized, allowing for comparison.
Preparing the API Gateway
- Dedicated server preparation
- Test Functions
- Proxy: Receives API requests from the client, forwards them to the API server, and delivers the response back to the client.
- Additional setup of Tomcat + Proxy Servlet for comparison testing
Preparing the API
- Dedicated server preparation
- API
- Generates and returns a 4 KB JSON response upon receiving a request.
Preparing the Client
- Dedicated server preparation
- Using nGrinder Open Source Testing Tool
- Prepare nGrinder Controller, Agent, Monitorย
- Notably, nGrinder provides a monitor for measuring system resources of the target server, enabling post-test UI-based analysis of TPS, CPU, and memory usage. Additionally, the use of separate Agents allows for increasing concurrent users.
3) Performance and Load Test Execution and Results
4) Summary
OSORI demonstrated nearly twice the TPS performance compared to Tomcat. The number of requests/responses processed in 5 minutes shows that OSORI handled approximately 1.5 million more than Tomcat. (If each API request is assumed to generate 10 KRW, this would result in an additional revenue of 15 million KRW.)
Another noteworthy aspect is that while processing more requests, OSORIโs CPU usage was 15% lower, and its memory consumption was only 11% of Tomcatโs.
๐ก(Questions, curiosity, guidance, sharing, etc.) Coffee chats or meeting requests are always welcome! Feel free to contact us via Channel Talk. |
#WEBARESOFT #OSORI #OpenAPI #APIGateway #APIM #APIManagement #APIPortal #APIPlatform #APISolution #APIMarket
2) Preparations for Performance and Load Testingย
As mentioned earlier, the API Gateway acts as the entry point for API requests and responses. The subject of performance and load testing is the API Gateway with proxy functionality.
The objective of the test is to determine how many requests can be processed per second and how much system resources (CPU, Memory) are utilized, allowing for comparison.
Preparing the API Gateway
Preparing the API
Preparing the Client
3) Performance and Load Test Execution and Results
Test duration: 5 minutes
Test 1
[Client] โ https โ [OSORI API Gateway] โ https โ [API Server: 4k JSON]
Test 2
[Client] โ https โ [Tomcat + Proxy Servlet] โ https โ [API Server: 4k JSON]
4) Summary
OSORI demonstrated nearly twice the TPS performance compared to Tomcat. The number of requests/responses processed in 5 minutes shows that OSORI handled approximately 1.5 million more than Tomcat. (If each API request is assumed to generate 10 KRW, this would result in an additional revenue of 15 million KRW.)
Another noteworthy aspect is that while processing more requests, OSORIโs CPU usage was 15% lower, and its memory consumption was only 11% of Tomcatโs.