spring-mvc-vs-webflux | Compare Performance for Rest Service | Build Tool library
kandi X-RAY | spring-mvc-vs-webflux Summary
kandi X-RAY | spring-mvc-vs-webflux Summary
Compare Performance for Rest Service that proxies request to underline Rest service and return it back. For WebFlux(Netty) use "web-flux" maven profile mvn clean install -P web-flux. For Servlet(Tomcat) use "servlet" maven profile mvn clean install -P servlet.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get user s sync status
- Send a request with the apache http client
- Gets user using CF client
- Sends the request with the Java client for the given time
- Gets user via java http client
- Entry point for the application
- Sends apache requests
- Gets user using webf client
- Gets user using apache http client
- Cancels the request
- Called when the future completes
- Called when this function completes
- Get user with specified delay
spring-mvc-vs-webflux Key Features
spring-mvc-vs-webflux Examples and Code Snippets
Community Discussions
Trending Discussions on spring-mvc-vs-webflux
QUESTION
I am trying to learn Spring Webflux comming from C# and NetCore, we have a very similar problem like this post, where a third party service provider has some response time problems.
But testing with spring-webclient is doubling the response time, I do not know if I am missing something
I tried to create a similar example with:
- A computer running 3 servers
- Demo server that just simulates some random delay time (port 8080)
- Test Server in C# using async to call my "Wait" server (port 5000)
- Test Server with spring and webclient to call my "Wait" server (port 8081)
- Other computer running JMeter with 1000 clients and 10 rounds each one
Just a simple route
...ANSWER
Answered 2020-Sep-14 at 14:48I think it may be caused by pool acquire time.
I assume your server gets over 1k TPS and each request looks to take about 9 seconds. But the default HTTP client connection pool is 500. Please refer to Projector Reactor - Connection Pool.
Please check the logs have PoolAcquireTimeoutException
or whether your server takes some time to wait pool acquisition.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spring-mvc-vs-webflux
You can use spring-mvc-vs-webflux like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the spring-mvc-vs-webflux component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page