Execution threads when facing streams #25055
-
In the below service i want to manipulate stored documents from mongodb. Method mongoService.retrieveExecutableTasks() returns Multi and sendHttpRequest() returns Uni so we expect them to be executed on the I/O threads by default. In this case we have to do with streams and handle the backpressure issue. Let's take a look at my solution: On top of class i have instantiated: The below method is triggered from Quartz scheduler every 1s
}`
I realize that adding the vertx-event-loop threads programmatically is not the best solution. Eventually, is there a reason why the executions do not happen in vertx-event-loop threads and how can i overcome the emitOn(), so that my executions run on the proper vertx-event-loop threads |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Problem fixed if we use vertx verticle |
Beta Was this translation helpful? Give feedback.
Problem fixed if we use vertx verticle