Skip to content

Instantly share code, notes, and snippets.

@oosidat
Last active November 21, 2016 19:26
Show Gist options
  • Save oosidat/10ed7bab8abe8dea1eb9ea3498331de8 to your computer and use it in GitHub Desktop.
Save oosidat/10ed7bab8abe8dea1eb9ea3498331de8 to your computer and use it in GitHub Desktop.

Understanding Kafka

  • Kafka - publish-subscribe messaging system
  • All incoming data is placed in Kafka
  • All outgoing data is read from Kafka
  • Messages organized into topics

Topics

  • Messages are sent to / read from (published to / subscribed from) topics
  • Producers publish/push/emit messages to a topic
  • Consumers subscribes to / pulls off messages from a topic
  • Topics are divided into partitions
  • Each message within partition has an id called offset
  • Message can be uniquely identified by the tuple (topic, partition, offset)
  • Consumers can be set to read from specific partitions, as a group, all consuemers read from all partitions for a particular topic

Resources

Docker Images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment