To demonstrate sleuth reactive overhead.
Deply Spring Cloud Gateway with and without Sleuth which will route requests to a spring boot microservice. Gatling will drive the load, measure the latency and plot the graphs. All componets are running on the same host. Based on Spring Boot 2.4.0 and Spring Cloud 2020.0.0
By default the test will run 6 times. 3 times with Sleuth enabled and 3 times with Sleuth disabled.
The test has been run on three sample platforms; a windows laptop, macbook pro laptop and a Linux server. Sleuth 3.x.x seems to show a significant improvement over Sleuth 2.x.x
Summary
Platform | Without Sleuth | With Sleuth - Manual | With Sleuth - On Last Operation | With Sleuth - On Each Operatorion |
---|---|---|---|---|
Windows 1000 users | 4 | 6 | 6 | 9 |
Mac 1000 users | 3 | 4 | 4 | 5 |
Linux 1000 users | 2 | 2 | 2 | 2 |
Linux 10000 users | 7 | 8 | 12 | 22 |
From root directory ./test.sh The results can be viewed in gatlingtest/target/gatling/