Vert.x - Event Bus Message

Java Conceptuel Diagram

About

An event bus message consists of a body, options, and it can optionally expect a reply

  • The event-bus allows passing any kind of data (JSON is the preferred payload format - As Vert.x is polyglot, JSON is ideal should verticles written in different languages need to communicate via message passing.)
  • Parameter are passed through message headers

Incoming network data are being received from accepting threads then passed as events to the corresponding verticles.

When a verticle opens a network server and is deployed more than once, then the events are being distributed to the verticle instances in a round-robin fashion which is very useful for maximizing CPU usage with lots of concurrent networked requests.





Discover More
Java Conceptuel Diagram
Vert.x - Event

event can be anything like receiving: network buffers, timing events, or messages
Java Conceptuel Diagram
Vert.x - Event Bus

The Vert.x event bus is the main tool for different verticles to communicate through asynchronous message passing. Code: io/vertx/core/eventbus/EventBus For instance suppose that we have a verticle...
Java Conceptuel Diagram
Vert.x - Verticle

Verticles are the technical units of deployments of code in Vert.x. Verticles share certain similarities with actors in the actor model. Verticles communicate with each other by generating messages...



Share this page:
Follow us:
Task Runner