粒度的理解和应用:

粒度的理解和应用:
粒度,就是指通过哪个层,哪个角度,哪个单位来定义或者分析的一个思维;
比如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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值