Hello @Gallatin 21V !
I understand you need some info on Azure Event Hubs receivers for your application and how you can avoid hitting limits, so here is my research:
Azure counts a receiver for each open connection to a partition within a consumer group. If you have multiple instances of EventHubConsumerClient
connected to the same partition and consumer group, each will count as a separate receiver.
Ensure that you are properly closing the clients when they are no longer needed. In Java, you would typically call the close()
method on your EventHubConsumerClient
instances to close the clients and free up the receiver slots.
if you are frequently hitting this limit, it might be an indication that you should reevaluate your consumer strategy. For example, you might need to distribute the load across more partitions, use a different consumer group, or implement backoff and retry logic to handle transient errors without spawning new receivers.
If you need to reset the number of receivers because you've hit the limit unexpectedly, you can attempt to manually close all your consumer clients. If you suspect that some receivers are "hanging" due to unhandled exceptions or application crashes, you might need to wait for a timeout period for Azure to clean up these presumed-dead connections.
I hope this helps!
The answer or portions of it may have been assisted by AI Source: ChatGPT Subscription
Kindly mark the answer as Accepted and Upvote in case it helped or post your feedback to help !
Regards