When I use spring cloud gateway to integrate spring cloud sleuth, I find that the performance is much slower than using spring cloud gateway alone. Is there any optimization scheme?
Machine configuration:6 core, 16g
spring cloud gateway:5331.9 tps
spring cloud gateway + spring cloud sleuth:4119.47 tps
“spring cloud gateway” is about 1000-2000tps slower than “spring cloud gateway + spring cloud sleuth”, and “spring cloud gateway + spring cloud sleuth” performance is reduced by 22%
You can check the release notes https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2020.0-Release-Notes#up-till-300-m5 and this issue https://github.com/spring-cloud/spring-cloud-sleuth/issues/1710 to see that with the latest release (2020.0.0) we've migrated to manual reactor instrumentation mode so you should see a significant improvement in performance.