-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Checkpoint Offset Information #221
Comments
I don't think this API exists for EventHubs, but I know it's been asked for in the past. Currently, this repo offers something called the Event Processor Host, which will balance consumers within a group and persist the checkpoints to Azure Storage. I think you could read those checkpoints to determine the current position of a consumer in the consumer group. To determine the current offset for a given partition, I believe you should be able to use: Lines 523 to 546 in 0eb7b61
It will have the last enqueued offset and other related partition information. azure-event-hubs-go/amqp_mgmt.go Lines 65 to 74 in 0eb7b61
|
Thanks David. So it seems that EventHubs don't actually keep track of the Offsets per ConsumerGroup per Partition? It seems to be offloaded to some type of CheckPointer with the popular one being the Blob Storage CheckPointer? Interestingly enough when you use the Sarama Client over the Kafka API for EventHubs the management of the Offsets using CheckPointers goes away and this seems to be offloaded somewhere magically in the background... Which leads me to believe there should be a way to read the information out of it somehow. |
I'm 90% sure something exists for the Kafka API on EH since most clients wouldn't work without it. It's such a key feature for partitioned consumers. I'm not sure it's exposed for regular EventHubs, but I really wish it was. It would make building partitioned consumers so much easier. Perhaps, someone from that team could comment. @jhendrixMSFT, do you know who the right person to pull in from EH would be? |
Adding @richardpark-msft as he'll be working on EH in the future. |
So the biggest thing is when i try to get a list of Groups back from the Broker (IE Azure Event Hub URI) it returns a nil map of Groups... Which makes me thing that the Kafka API mapping back ConsumerGroups to EventHub is not mapped correctly. |
Here is an example using Sarma
|
Expected Behavior
Hi Team.
I'm wondering if there is a API like there is in Kafka API to pull out the current Offset values of all consumers in a consumer group for a given topic vs the Current offset on the given partition of the topic for that consumer.
Trying to see if there is a way to extract data that can be used to see if there is back pressure on a certain consumer in a consumer group for a given topic or topics.
Actual Behavior
In Kafka for example you would be able to
FetchOffsets
using aOffsetFetchRequest
to return back information regarding a given CounsumerGroup for given partitions.https://github.com/Shopify/sarama/blob/master/broker.go#L372-L383
https://github.com/Shopify/sarama/blob/master/offset_fetch_request.go#L3-L8
Environment
The text was updated successfully, but these errors were encountered: