According too Microsoft docs
There can be at most 5 concurrent readers on a partition per consumer group; however it is recommended that there is only one active receiver on a partition per consumer group. Within a single partition, each reader receives all of the messages. If you have multiple readers on the same partition, then you process duplicate messages. You need to handle this in your code, which may not be trivial. However, it's a valid approach in some scenarios.
How do we configure our
EventHubConsumerClient
's to load balance partitions equally across consumers in the same consumer group?How can we prevent two or more consumers in the same consumer group, consuming from the same partition?
Note: using node azure eventhubs sdk https://www.npmjs.com/package/@azure/event-hubs
Thanks in advance!