concept Broker in category kafka

appears as: Broker, Broker
Kafka in Action

This is an excerpt from Manning's book Kafka in Action.

Table 2.1. The major components and their roles within the Kafka architecture
Component Role

Producer

Sends message to Kafka

Consumer

Retrieves messages from Kafka

Topics

Logical name of where message are stored in the broker

ZooKeeper ensemble

Helps maintain consensus in the cluster

Broker

Handles the commit log

Figure 6.3 shows a 3 node cluster and how leadership is defined for a specific example. Broker 3 is the leader for partition 2. Broker 2 and Broker 1 are followers of this leader. As the leader, Broker 3 will handle all of the reads and writes from external producers and consumers. The leader will also write the messages it receives to the other two brokers. The ISR list would include the leader as the first position (3) and the remaining followers that are staying up-to-date on their copies of the messages from the leader.