Does someone know how the following situation is handled by vert.x?
- Consider verticle A and verticle B assigned to the same event loop
- Verticle A receives 1 million cpu-bound events to process
- After this Verticle B receives 1 cpu-bound event.
Will verticle B execution wait for the all queue from A to finish?
The documentation is not clear about this aspect.
Here is some excerpt from the documentation: http://vertx.io/manual.html#event-loops
When a standard verticle instance is deployed, the server chooses an event loop which will be assigned to that instance. Any subsequent work to be done for that instance will always be dispatched using that exact thread. Of course, since there are potentially many thousands of verticles running at any one time, a single event loop will be assigned to many verticles at the same time.
We call this the multi-reactor pattern. It's like the reactor pattern but there's more than one event loop.
Thanks, Mihai