spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.52k stars 3.32k forks source link

Write (or integrate) a stress/load testing suite for s-c-gateway #31

Open spencergibb opened 7 years ago

spencergibb commented 7 years ago

Try to get some early load metrics for the stability and performance of s-c-gateway.

kakawait commented 7 years ago

Do you have any idea on how to perform load/stress tests? For example using some tools like JMeter or Gatling?

spencergibb commented 7 years ago

I've used tools like those before.

turgaycelik commented 6 years ago

I performed some tests by using Apache HTTP Server Benchmarking Tool, ab. Results don't seem promising when compared to Netflix Zuul and Ngnix.

We are performing Gatling tests for Zuul and Ngnix. Since the current performance of Spring Cloud is not promising, we didn't include it as an alternative at least for now.

Experiment Mean Time Per Request (ms) Request Per Second
Nginx reverse proxy 32.085 6233.40
Zuul (after warmup) 28.422 7036.90
Spring Cloud Gateway 229.058 873.14

PS: Test server is AWS EC2 M4.2xLarge (Eight Core CPU, 32 GB of Memory)