In this post we are going to understand Kafka Broker, what is Kafka Broker? and how Kafka Broker works?
Kafka Broker:
A broker is a server that maintains messages submitted to topics and fulfills consumer requests on each host in the Kafka cluster.
Key Points About Kafka Broker:
- A Kafka broker can alternatively be referred to as a Kafka server or Kafka node. All of these names are interchangeable. In simple terms, a broker is a person who acts as a middleman between two parties.
- A Kafka broker is similar to a Kafka Server in that it hosts topics.
- A Kafka broker accepts messages from producers and stores them on a disc with a unique offset for each message.
- Consumers can retrieve messages by subject, partition, and offset using a Kafka broker.
- Kafka brokers can build a cluster by exchanging information with one another directly or indirectly through Zookeeper.
- Management of the brokers in the cluster is performed by Zookeeper.
A single Kafka broker can manage thousands of reads and writes per second.
Running the Kafka Broker:
Make sure the zookeeper is operating before starting the kafka server. Here is the command to create a kafka broker:
bin/kafka-server-start.sh config/server.properties
0 Comments