-
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 groups on Kafka 0.9 #588
Conversation
} | ||
Heartbeat struct { | ||
// Interval between each heartbeat (defaults to 3s). It should be no more | ||
// than 1/3rd of the Group.Session.Timout setting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could check this in Config.Validate()
Thanks for working on this 👍 As for the approach, I think what you are doing makes sense:
|
@wvanbergen so yes, I am working on a high-level group consumer as a separate package for now. I have addressed your feedback above. Please let me know if there's anything else. |
@@ -0,0 +1,94 @@ | |||
package sarama | |||
|
|||
type GroupMemberMetadata struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As for naming, we should probably call this ConsumerGroupMemberMetadata
. This is a specialization of the generic group type.
This looks pretty good to me. Let's see what @eapache thinks. |
Hey, I have released a v2 branch of https://github.com/bsm/sarama-cluster/tree/v2 which requires this PR to be merged. I would really appreciate if you could do it next week. Feedback on the cluster consumer is also welcome. Thanks, dim |
I've been away, sorry. I'll take a look tomorrow. |
Hey, I am working on implementing consumer groups on Kafka 0.9 and here are the required API additions. I am not particularly sure about metadata, as Kafka doesn't prescribe but only recommend a structure for it. I followed the recommendations on https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-JoinGroupRequest, please let me know what you think.
Cheers,
Dim