-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
(local) consumer groups: not working #202
Comments
This is not a trivial task since it requires consumer group correlation, which is what will be implemented with #152 anyway :) |
simple quick fix: |
Consumer groups splits consumers up on partitions, not specific messages, i.e.: consumer 1 reads partition 2, consumer 2 reads partition 3, consumer 3 reads partition 1. This should be fairly easy to implement on top of librdkafka with some IPC calls between processes. |
hehe i simplified the problem (maybe too much). i have to make sure a message is only processed once but i don't care if it gets processed by process a or b (on machine a or b). this is the way i would like to use consumer groups. i was hoping this would be allready in rdkafka or at least a easy thing. if this is not the case (and it looks like) i have to rethink my approach :( edit: |
the problem is i might need this feature until beginning of april ;) i think i will write a wrapping with zookeeper like in the example |
i know the broker based consumer group is not implemented yet #152.
but it would be possible to handle it at least local in process or on local for the machine (see offset files #199 ).
i was trying to use two consumers in the same group (group name "group 1") in the same process but they consumed both the same message what was kind of unexpected.
using topicConfig->set("group.id", stringGroupName, errorStr)
The text was updated successfully, but these errors were encountered: