kafka topic partition

NDZhuangy 发布于 2013/11/27 17:14
阅读 2K+
收藏 0

@FrankHui 你好,想跟你请教个问题:在0.7版本中,topic和partition是什么关系?

描述:一个topic有两个partition(part0, part1),那part0和part1中的数据是相同的嘛?

加载中
0
Gaischen
Gaischen

A topic is a category or feed name to which messages are published. For each topic, the Kafka cluster maintains a partitioned log that looks like this:

Each partition is an ordered, immutable sequence of messages that is continually appended to—a commit log. The messages in the partitions are each assigned a sequential id number called the  offset  that uniquely identifies each message within the partition.
N
NDZhuangy
谢谢!这个图应该是0.8版本的复制架构图吧?0.7版本中,不同partition应该是partition函数决定数据到那个分区,最后至part0和part1不同吧?
返回顶部
顶部