Replies: 1 comment 8 replies
-
@cescoffier @geoand @sberyozkin |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
I'm trying to understand reactive flow execution in Quarkus and have a few doubts. I believe this is the best platform to ask.
I have an application where we call an external service and use its response within the calling service. As I understand, in reactive programming, code executes on an event loop thread by default. However, we can't block the event loop thread for long-running operations since the number of event loop threads is limited. Such processing should instead be offloaded to a worker thread.
I created the following method to manually run the external service call on a worker thread. I just wanted to confirm: Is this the correct way to handle such operations, or does Quarkus provide any mechanism to automatically detect blocking operations and switch to a worker thread?
Please assist here, Thanks in advance
I also found some informative blogs
https://quarkus.io/blog/io-thread-benchmark/#imperative-and-reactive-the-elevator-pitch
https://quarkus.io/blog/resteasy-reactive-faq/
https://quarkus.io/blog/resteasy-reactive-smart-dispatch/
Beta Was this translation helpful? Give feedback.
All reactions