3 Event bus: The backbone of a Vert.x application

This chapter covers

  • What the event bus is
  • How to have point-to-point, request-reply, and publish/subscribe communications over the event bus
  • The distributed event bus for verticle-to-verticle communication across the network

The previous chapter introduced verticles. A Vert.x application is made up of one or more verticles, and each verticle forms a unit for processing asynchronous events. It is common to specialize verticles by functional and technical concerns, such as having one verticle for exposing an HTTP API and another for dealing with a data store. This design also encourages the deployment of several instances of a given verticle for scalability purposes.

What we have not covered ...

Get Vert.x in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.