[Vertx] How to use a dedicated worker pool #41695
Replies: 4 comments 7 replies
-
/cc @geoand (kotlin) |
Beta Was this translation helpful? Give feedback.
-
cc @cescoffier |
Beta Was this translation helpful? Give feedback.
-
You could try using a ManagedExecutor (https://quarkus.io/guides/context-propagation#usage-example-for-completionstage) instead of the Vert.x worker pool. The ManagedExecutor propagates the context. |
Beta Was this translation helpful? Give feedback.
-
Maybe, I should rephrase the question. What is the easiest way to add and use a second worker pool (with a different number of workers and different timeouts) to a Quarkus App? |
Beta Was this translation helpful? Give feedback.
-
Hi,
can anyone jump in and help me understand how to use a dedicated vertx pool, when consuming events? I have tried so many variations, but I simply don't get how it's supposed to be done.
I have a process that creates several thumbnails for images, stores them and creates a database entry.
Below are two ways that somehow looked promising, but they only utilise 1 thread of the thumbs worker.
Here I did not use
@Blocking
on the consume event, but then I had to activate the context myself.This one looks a bit better for my taste, but also only utilises one thread of the thumbs pool.
Any help/advise is appreciated
Thanks
edit: Would something like this be a welcomed feature?
Beta Was this translation helpful? Give feedback.
All reactions