kafka在0.8.0版本增加了基于主从复制的实现. 最近一直在看这块, 所以一时兴起想着能不能看看他的实现呢?
完整的过程在这里: (使用gitee比github快不少)
https://gitee.com/gaoxingliang/kafka/tree/0.8.0_local/readings
使用的是基于0.8.0. 所有的依赖和步骤在这个md中描述.
kafka实现复制的ticket - https://issues.apache.org/jira/browse/KAFKA-50
更多关于分布式理论的学习: https://github.com/gaoxingliang/ddia-study