Replies: 1 comment 11 replies
-
You are blocking the event loop. What you are doing is actually an exception earlier in the latest version of Micronaut. If you intention is to do primarily blocking operations you need to configure the client & server to handle that case. Here is a recommended configuration:
|
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Expected Behavior
Concurrent requests to micronaut service should work fine without any issues.
Actual Behaviour
I am facing issue with concurrent requests hitting micronaut service.
To simplify, I have made this application: I have exposed a GET method REST api, which calls external service REST API and returns HTTP 200.
When I run these in sequential, it works fine. But, when I run in concurrent fashion with just 2 threads, it fails with timeout exception after 200 requests.
Note: External REST API which is being called using HttpClient within micronaut service is not an issue. It has been tested with more than 20million requests with about 19k TPS and it is just GET api which returns json response.
Steps To Reproduce
Resource class
Filter class
application.properties
Exception after some requests (about 200 requests):
Exception happens at
and
Post stopping the incoming requests, these logs are printed continuously
Thanks
Environment Information
JDK 17
Example Application
No response
Version
4.2.1
Beta Was this translation helpful? Give feedback.
All reactions