triffic's recent timeline updates
triffic

triffic

V2EX member #147895, joined on 2015-11-20 12:32:02 +08:00
triffic's recent replies
已加入 Python,申请加入 java,账号:triffic-tang
账号:triffic-tang
python
其实之前发起过一次,详见 https://github.com/triffic-tang/BlogLists
Aug 9, 2017
Replied to a topic by guyeuro 问与答 kafka 发布的消息只能到一个 partition 吗?
@guyeuro 可以的
Aug 7, 2017
Replied to a topic by guyeuro 问与答 kafka 发布的消息只能到一个 partition 吗?
第一个问题:是的,但这个 partition 会在多台 server 上 replication ;
第二个问题:不是,
http://kafka.apache.org/0110/images/consumer-groups.png
如果消费者在同一个消费者 group,那么这个消息只会被消费者组中的某一个消费者消费;
如果消费者不在同一个消费者 group,同时又都订阅了这个 topic,那么这个消息会被多个消费者组中的消费者消费。
所以「消息只能被一个消费者消费」不准确。

参考![Kafka]<http://kafka.apache.org/intro>
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   950 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 21:18 · PVG 05:18 · LAX 14:18 · JFK 17:18
♥ Do have faith in what you're doing.