Search code examples
azureintegrationazure-eventhub

What is Consumer Group in azure Event Hub?


Can anyone please figure out what is Consumer Group in Azure Event Hubs. And What is the use of it? I have surfed a lot of sites but I can't get a clear answer.


Solution

  • From the docs:

    Consumer groups: A view (state, position, or offset) of an entire event hub. Consumer groups enable consuming applications to each have a separate view of the event stream. They read the stream independently at their own pace and with their own offsets.

    Diagram:

    enter image description here

    According to this consumer groups are the way to logically separate your consumers, so they only see the events they are interested in.