Barcelona
Barcelona

Reputation: 2132

How cluster event bus in Vertx works?

I am new to Vertx. I am confused about event bus in clustering environment.

As documentation of vertx

The event bus doesn’t just exist in a single Vert.x instance. By clustering different Vert.x instances together on your network they can form a single, distributed event bus.

How exactly event bus of different Vert.x instances are joined together in cluster to form a single distributed event bus and the role of ClusterManager in this case? How the communication between nodes work in distributed event bus? Please explain me this in detail of technical. Thanks

Upvotes: 0

Views: 1090

Answers (1)

tsegismont
tsegismont

Reputation: 9128

There is more info about clustering in the cluster managers section of the docs.

The key points are:

  • Vert.x has a clustering SPI; implementations are named "cluster managers"
  • Cluster managers, provide Vert.x with discovery and membership management of the clustered nodes
  • Vert.x does not use the cluster manager for message transport, it uses its own set of TCP connections

If you want to try this out, take a look at Infinispan Cluster Manager examples.

For more technical details, I guess the best option is to go to the source code.

Upvotes: 1

Related Questions