0

Is active and passive consumers baked into the Azure EventHubs SDK? I'm looking implement one active consumer and one or more passive/fallback consumers if the active one were to go offline. Ideally it'd be an automated process where I can spin up multiple instances of the same application on multiple servers, then have the applications automatically resolve which instance should be processing messages. I've read through Azure's documentation, and it appears to be possible, though in-depth information is not provided. The documentation states how they recommend only having one active reader, but they don't mention how that is implemented. Does that mean only one instance of my consuming application can be up and running at any given time? Or is there a configuration which can control how many active consumers are allowed? For this project, we're using the EventHubConsumerClient class, not the EventProcessorClient.

EventHub structure: Partition 0: Consumer 0: Active, my application is up and running and is processing messages. Consumer 1: Active, my application is up and running but idle as Consumer 0 is active. Partition 1: Consumer 0: Active, my application is up and running and is processing messages. Consumer 1: Active, my application is up and running but idle as Consumer 0 is active.

1
  • 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.
    – Sampath
    Commented 23 hours ago

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.