Reputation: 133
I am just starting to learn about vert.x and am interested in how thing work still... I was wondering:
when a reactive non blocking verticle off loads work to a blocking vertical which runs on a worker thread.
1.what does the event loop thread, that off loaded the work, does in the mean time? take another event from the loop?
when the a result is returned, does the same event loop continues execution? or a different one?
what are the answers to 1 & 2 in the case that a non blocking verticle off loads work to another non blockiong vertical (like a reactive sql client).
I feel I am missing some basic stuff regarding how things actually work. thanks for the help!
Upvotes: 0
Views: 466
Reputation: 9128
To your 3 questions:
Yes, the event loop thread continues handling events, if any, of the standard verticle
A result returned is an event that the same event loop will handle
The answers to 1. and 2. are the same in the case that the standard verticle offloads work to another standard verticle.
Upvotes: 1