粒度的理解和应用:
粒度的理解和应用:粒度,就是指通过哪个层,哪个角度,哪个单位来定义或者分析的一个思维;比如RocketMq的复制是topic级别的,kafka也是topic级别的;但是RocketMq的复制处理中,Leader和follower是broker粒度的,而kafka的leader和follwer是分区粒度的即The unit of replication is the topic p
粒度的理解和应用:
粒度,就是指通过哪个层,哪个角度,哪个单位来定义或者分析的一个思维;
比如RocketMq的复制是topic级别的,kafka也是topic级别的;
但是RocketMq的复制处理中,Leader和follower是broker粒度的,而kafka的leader和follwer是分区粒度的
即
The unit of replication is the topic partition. Under non-failure conditions, each partition in Kafka has
a single leader and zero or more followers. The total number of replicas including the leader constitute
the replication factor. All reads and writes go to the leader of the partition. Typically, there are many
more partitions than brokers and the leaders are evenly distributed among brokers. The logs on the followers are
identical to the leader’s log—all have the same offsets
and messages in the same order (though, of course, at any given time the leader may have a few as-yet unreplicated messages at the end of its log).
参考:http://kafka.apache.org/documentation/#majordesignelements
更多推荐
所有评论(0)