--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/8067d211-93bc-4d54-858b-1f219b71f33an%40googlegroups.com.
Hello,Thank you for your answer. I'm not sure what do you mean. The point of a Worker Verticle is that I can use different threads that might block to serve the requests (in this case the events in the event bus), so they should not be handled one after the other. Or am I wrong?
--On Wednesday, March 24, 2021 at 3:36:27 PM UTC+1 tsegi...@gmail.com wrote:Hi,You need to deploy as many instances of the worker verticle as you have threads in your custom pool.Otherwise the single instance of the worker verticle handles events one after the other (using the same thread or not makes no difference then).Le mer. 24 mars 2021 à 15:10, Alessandro Chacon <alessand...@cryptobroker.ch> a écrit :I'm using Vertx 3.9.5 by the way.On Wednesday, March 24, 2021 at 3:10:06 PM UTC+1 Alessandro Chacon wrote:Hello,I have realized that when having a Working Verticle and an alternative pool [.setWorker(true).setWorkerPoolName] the consumed event bus messages are NOT processed in a thread chosen in a round robin fashion when the messages are sent very fast (tens in less than a second). All of the messages end up being consumed by the same thread.I'm not sure if this is also a behavior of using the standard pool for a Worker Verticle.I thought it was said before that the thread selection on a Worker Verticle is always done in Round Robin. Is this not the case when consuming many events? Is the Round Robinness partitioned by a time range? (e.g. every 50ms choose the next thread)Appreciate the answers.--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/8067d211-93bc-4d54-858b-1f219b71f33an%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/a5908732-f445-46e2-bfd7-55334578e835n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/6bb2eb4d-e1d6-414b-b2f1-b02e81b03ca3n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/9ba5948b-2a6a-4589-93b6-9e75842f607fn%40googlegroups.com.
Yes, this is exactly what I'm talking about. I have a single consumer on an eventbus address. This consumer is called using the exact same thread if many events are happening in a short time (tens in a second). However if the events happen not so frequently (1 every second) the thread used seems to be selected in round robin (worker-1, worker-2, worker3,.....).
Do you have any idea why? It seems to me like it's some sort of time range clustered based round robin selection.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/1f55bda2-fc1e-460f-bea6-5eb0f3fa6601n%40googlegroups.com.