Instance Level Load Balancing of a Subcriber in a PUB SUB Mode on the event bus
arunkumarck opened this issue · 1 comments
arunkumarck commented
Example
- 1 Publisher Verticle P
- Vertcile Subscribers A and B
- Subscriber A has two Verticle instances
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:
- Request Reply does not provide receiver agnostic programming
- Request Reply is not the same as PUB SUB.
- It involves a response, even if left empty will need to be timed out which makes it a overhead.
tsegismont commented
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.