--
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.
For more options, visit https://groups.google.com/d/optout.
Visit this group at https://groups.google.com/group/vertx.To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/ec2f082c-7f81-48c9-84f1-082f546fc568%40googlegroups.com.
Vert.x will only use a number of threads equivalent to the number of deployed Verticle instances.
Instead of a single event loop, each Vertx instance maintains several event loops. By default we choose the number based on the number of available cores on the machine, but this can be overridden.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/ec2f082c-7f81-48c9-84f1-082f546fc568%40googlegroups.com.
My question is related to this topic. Let's say, while a user is logging in, you need to signal other verticles and you publish a "login event" on the eventbus. This triggers the handlers of a logging verticle and some other verticles that need to perform tasks when a user logs in. Because all handlers need to listen on this particular event, you have to publish (and not send) this event on the EventBus. Now the question: how would I scale the handlers registered by the logging verticle and the other verticles? If I set the instance-count to N greater than one, then the "login event" would be handled N times by each handler, e.g. the "login event" would be logged N times. What I want though is that the event is handled by each (verticle) handler once, but in a round robin fashion. Is that possible?
Yes, I'm aware of the difference. I'm wondering if my usecase is so uncommon. Maybe I have to explain it better:Verticle A, B and C have each a handler registered for Event X. When X is send over the bus, all handlers should be triggered exactly once.
That's correct, but what if X is emitted faster, than A,B,C can process the event? My first attempt would be to increase the instance-setting to N in the DeploymentOptions for A, B and C, but that would just mean that X is handled N-times by A, B and C each time it is published.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/efe357c1-99c1-4209-84d7-77c6a649568b%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/efe357c1-99c1-4209-84d7-77c6a649568b%40googlegroups.com.