What is Kafka?
Kafka is publish subscribe messaging system rethought as a commit log service.
What are the components that make kafka
Common kafka use cases
What is a kafka topic
A name you wish to give a series of messages
What is a kafka broker
An instance of kafka running on a server. Each individual server is a cluster or in kuberneties this is probably a pod
What is a kafka cluster
Clusters is a collections of brokers
Describe Kafka partition
What is a consumer group
A consumer group is a collections of consumers/nodes. They receive every message from kafka cluster meaning if there were two groups they would both receive the same message that went into kafka.
How do partitions receive messages
Producers assign a message to a partition
Where does a partition send the data?
What are the characteristics of Offsets
What are Topics and what are their characteristics
How do Producers interact with Topics
How to Consumers interact with Topics
Consumers belong to a groups and each message in a topic is sent to one group member
How are topics creates?
What are replicas?
Explain producers and their role
Producers job is to publish data to the cluster.
- can run in sync or async mode.
- They can decide on where the data is going to go.
- Assigning data to specific partitions.
- Can assign a message to a partition
- Producers can decide on the partitioning semantics
Explain the consumers role
Consumers read the data from the cluster
- Consumers can have different characteristics
- One is called high level and another is called simple level
- simple level requires more setup allowing for the user to have more control over what the consumer does.
Explain the role of the Brokers
Brokers are clustered data repositories
- Kafka cluster contains a collection of brokers
- Brokers contain partitions
- Broker structure can produce messages independently of consuming messages
Advantages:
- decouple processing from data producers
- buffer unprocessed messages
- broker structure is the reason for Kafka’s very high performance
Explain what a cluster is
A cluster is a collection of brokers.
A cluster must have atleast one broker.
What are the characteristics and functionality of high level consumers