Azure EventHubs "Exceeded the maximum number of allowed receivers per partition"

Bozhidar Bozhanov 21 Reputation points
2021-10-04T16:37:01.093+00:00

Azure Eventhubs gives "Exceeded the maximum number of allowed receivers per partition in a consumer group which is 5" (I'm consuming it through a Java application)

That's expected, as I was testing and forgot to call close on consumers. However, there doesn't seem to be a way to expire existing stale consumers.

It's been a few hours now and I can't connect a new consumer, as apparently consumers are stuck there. Is there a way to "unblock" the hub, or the only way to go is deleting it and recreating it?

That wouldn't be ideal, as even when there's proper handling, there's a chance of a process dying mid-consumption, leaving a stale consumer.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
593 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 84,936 Reputation points Microsoft Employee
    2021-10-05T10:18:03.553+00:00

    Hello @Bozhidar Bozhanov ,

    Thanks for the question and using MS Q&A platform.

    The expected behavior is that Event Hubs would terminate a 6th receiver.

    The number of non-epoch receivers per consumer group is five.

    137687-image.png

    There can be at most 5 concurrent readers on a partition per consumer group; however it's recommended that there's 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.

    For more details, refer to Azure Event Hubs quotas and limits and Azure Event Hubs - Consumer Groups.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

0 additional answers

Sort by: Most helpful