Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka #4

Closed
chrishyx opened this issue Dec 25, 2015 · 3 comments
Closed

Kafka #4

chrishyx opened this issue Dec 25, 2015 · 3 comments

Comments

@chrishyx
Copy link
Owner

No description provided.

@chrishyx
Copy link
Owner Author

  • Kafka maintains feeds of messages in categories called _topics_.
  • We'll call processes that publish messages to a Kafka topic _producers_.
  • We'll call processes that subscribe to topics and process the feed of published messages _consumers_.
  • Kafka is run as a cluster comprised of one or more servers each of which is called a _broker_.

@chrishyx
Copy link
Owner Author

image

  • Partition:topic物理上的分组,一个topic可以分为多个partition,每个partition是一个有序的队列。
  • Segment:partition物理上由多个segment组成。
  • offset:每个partition都由一系列有序的、不可变的消息组成,这些消息被连续的追加到partition中。partition中的每个消息都有一个连续的序列号叫做offset,用于partition唯一标识一条消息.

@chrishyx
Copy link
Owner Author

Segment内部结构
image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant