eclipse-vertx / vert.x

Vert.x is a tool-kit for building reactive applications on the JVM
http://vertx.io
Other
14.26k stars 2.07k forks source link

Instance Level Load Balancing of a Subcriber in a PUB SUB Mode on the event bus #5275

Closed arunkumarck closed 1 month ago

arunkumarck commented 1 month ago

Example

When data is received on the topic/event bus in pub sub mode, the data should be load balanced between the instances of subscriber A.

Note:

  1. Request Reply does not provide receiver agnostic programming
  2. Request Reply is not the same as PUB SUB.
  3. It involves a response, even if left empty will need to be timed out which makes it a overhead.
tsegismont commented 1 month ago

This is by design of the eventbus.

If you require to have at most one consumer handling the published message, you must extract the consumer code in a separate verticle and deploy a single instance.