apache / shenyu

Apache ShenYu is a Java native API Gateway for service proxy, protocol conversion and API governance.
https://shenyu.apache.org/
Apache License 2.0
8.43k stars 2.93k forks source link

Springcloud performance issue #5585

Closed tswc1989 closed 3 months ago

tswc1989 commented 3 months ago

Is there an existing issue for this?

Current Behavior

During the testing process, we discovered a performance bottleneck in Shenyu. The test scenario was set up to use Jmeter to conduct a stress test on a Mock microservice, with specific conditions of simulating 100,000 requests from 1000 concurrent users. When directly connecting to the Mock service, the system achieved a high throughput of 9000 queries per second (QPS), with a 99th percentile latency of 32 milliseconds, demonstrating robust performance.  However, when the same test was conducted through Shenyu gateway as a proxy for Spring Cloud, a significant performance degradation was observed. Specifically, the QPS dropped to just over 2000, while the 99th percentile latency soared to 826 milliseconds. This indicates that when routed through Shenyu, the system's speed in processing requests slowed down markedly, and the response time for most requests increased substantially.

Expected Behavior

The throughput of shenyu springcloud plugin can be improved

Steps To Reproduce

No response

Environment

ShenYu version(s):
V2.6.1

Debug logs

No response

Anything else?

No response

tswc1989 commented 3 months ago

duplicate