You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi,
I use SimpleConsumer to consume message , but I find that "Two consumers belong to the same group get the same message ".
My code is: https://gist.github.com/wangxiangyu/2fb73be1266fd74cd9e5
I read the code briefly, I cant find the code which is used to ensure this character.
Thank you!
The text was updated successfully, but these errors were encountered:
Consumer coordination is currently not supported by kafka-python. See Issue #38 . This feature requires either (1) custom client-side coordination via Zookeeper/Etcd/Consul, or (2) wait until kafka-server adds coordination API support. As much as I'd love to write an etcd/consul powered coordination layer, we'll probably end up waiting until kafka-server supports this. I believe that is expected in apache kafka 0.9.0 or possibly even 0.8.2
a better emulation would be to assign consumers to partitions explicitly. As long as you have a consumer group in which no two consumers read from the same partition, you should not see duplicate message processing. The complexity arises when you want the client code to manage partition assignment dynamically, and additionally support add/removing consumers from the group.
hi,
I use SimpleConsumer to consume message , but I find that "Two consumers belong to the same group get the same message ".
My code is: https://gist.github.com/wangxiangyu/2fb73be1266fd74cd9e5
I read the code briefly, I cant find the code which is used to ensure this character.
Thank you!
The text was updated successfully, but these errors were encountered: