Event bus
The event bus is the core of the system of a Vert.x application. Each verticle communicates with other verticles using the event bus. This means that, once a message or event is looped into the event bus, this message gets delivered to the appropriate verticle. The verticle then reacts by reading the event (it can contain objects or any primitive data type such as strings or numbers) and by taking the proper action. Events and messages are handled asynchronously, so every time a verticle produces a message, the latter is sent to the bus in a queue and control is returned to the verticle. Later, as computational resource are available, the listening verticle gets the event and it sends back a response using Future and callback methods. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access