What is the appropriate way to communicate Vert.x cluster with Orbit cluster?

You should be careful with thread management when using Vert.x. I don't want to implement a whole new Orbit client for Vert.x. What is the appropriate way to communicate a Vert.x cluster with an Orbit cluster? Is it a good idea to use Vert.x tcp eventbus bridge with an Orbit cluster?

Upvotes: 0

Views: 210

Answers (1)

Paulo Lopes
Paulo Lopes

Reputation: 5801

There is no best answer here. Both options have pros and cons.

Using the tcp eventbus bridge will give you the quickest integration between different systems, however it has the downside of introducing a single point of failure. Say that the node that runs the bridge crashes or the network breaks you'll be isolated.

Alternatively (and a bit more complex) would be to implement a cluster manager based on orbit. One should start by looking at the interface ClusterManager and from there provide an orbit implementation. Since the whole cluster manager is an SPI at runtime (in the vertx side) one could just replace the implementation jar and no code change would be required. For a full documentation on this see here. The downside is that it will be more complicated to achieve but you'll have better integration.

Upvotes: 1

Related Questions