Skip to content
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 #410

Closed
trotha01 opened this issue Apr 8, 2015 · 7 comments
Closed

Consumer Group Example #410

trotha01 opened this issue Apr 8, 2015 · 7 comments

Comments

@trotha01
Copy link

trotha01 commented Apr 8, 2015

An example of how to create a consumer with a specific consumer group would be nice.

I didn't see it in the *Config that is passed into NewConsumer(), so I'm not sure how I would create a consumer for a specific consumer group.

@eapache
Copy link
Contributor

eapache commented Apr 8, 2015

At the moment sarama doesn't include the zookeeper logic necessary to register and consume as part of a consumer group. That logic is currently in a separate package (https://github.com/wvanbergen/kafka) though we do hope to integrate it eventually.

@eapache eapache closed this as completed Apr 8, 2015
@trotha01
Copy link
Author

trotha01 commented Apr 8, 2015

I'll check out that package. Thank you for the very quick response!

@wvanbergen
Copy link
Contributor

An example of said library can be found here: https://github.com/wvanbergen/kafka/blob/master/examples/consumergroup/main.go

It's definitely more experimental than sarama, feedback is welcome!

At the same time, we're also brainstorming on how to make it easier to consume all partitions of a topic in #366, and implement offset management in #379

@dzlab
Copy link

dzlab commented Nov 5, 2015

Has this package been integrated to sarama or not yet??

@eapache
Copy link
Contributor

eapache commented Nov 5, 2015

No, we are still waiting on upstream Kafka to release a version of the final API for consumers that does not depend on zookeeper.

@felipejfc
Copy link

bump

@eapache
Copy link
Contributor

eapache commented Dec 20, 2016

See #597

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants