-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Consumer group example #535
Comments
wvanbergen/kafka#72 is almost done, and should serve as a good example. |
It doesn't answer my question. The pull request you have improves the original implementation (which uses zookeeper for managing consumer offset) and add logic to also use zookeeper for managing partition metadata as well. |
That's exactly what that pull request does. It will still need zookeeper for coordination of instances though. |
Sorry, I was still looking at ConsumerGroup. How do I fetch the offset? In the example, you start with OffsetNewest. I want to fetch the offset (if available) and start from there. |
The |
Thank you so much. I will play with a bit to get more familiar. Is there any plan to merge it with Shopify/sarama? |
Nope, because of the Zookeeper dependency. A future version of Kafka is supposed to have all the APIs to be able to implement a high-level consumer. At that point we will probably add it to sarama. |
as kafka 0.9 is released now, Zookeeper dependency is removed. |
Yup, it's in scope of sarama now. However, we don't have any immediate plans to start working on it. Contributions are definitely welcomed! |
Can someone add example code on how to implement a consumer group using OffsetManager? I looked at https://github.com/wvanbergen/kafka, but it is uses zookeeper. New version of Kafka allows to store consumer offset in Kafka and OffsetManager seems to enable it. An example implementation will be very helpful.
The text was updated successfully, but these errors were encountered: