liveBook · Manning

Kafka broker

As explained in Kafka for Architects

A Kafka broker is a Kafka server that stores, receives, and serves records for producers and consumers without interpreting their application-level content.

A Kafka broker is a Kafka server that stores, receives, and serves records for producers and consumers. It treats each record as opaque bytes, forwarding application-level interpretation to clients. section 1.5.1 section 4.2

A production deployment normally uses a cluster of brokers. Brokers handle client traffic, storage, and replication, while KRaft controllers maintain metadata, coordinate cluster operations, and detect failed brokers. section 1.3.2

Consumer polling

A consumer requests partition assignments, polls a broker repeatedly, receives available records in batches, deserializes and processes them, then commits its offset. The offset records where reading resumes; it does not confirm successful processing of each record. section 4.2

Broker opacity keeps Kafka fast and flexible but prevents broker-side content-based routing and message validation. Clients must deserialize and validate records, or an intermediate service such as Kafka Streams or Apache Flink must route them. section 5.2.3 section 1.5.1

Figure 1.4 Structure of a Kafka cluster: brokers handle client traffic; KRaft controllers manage metadata and coordination.
A screenshot of a computer

AI-generated content may be incorrect.

Use the cluster view to distinguish broker responsibilities from KRaft controller responsibilities. section 1.3.2

How Kafka for Architects covers it

How deep it goes
Explains cluster roles, opaque records, consumer polling, offsets, and broker limitations, but defers detailed schema and compatibility design.
Examples
Uses a broker cluster diagram, Schema Registry message flow, and consumer polling, processing, batching, and offset-commit workflow.
What it assumes
Assumes familiarity with producers, consumers, messages, and event-driven communication while explaining broker and controller roles.
What you can do after
Operate/configure broker-based flows while placing deserialization, validation, routing, and processing in clients or intermediary services.
How it connects
Connects brokers with producers, consumers, partitions, offsets, KRaft controllers, Schema Registry, Kafka Streams, and Apache Flink.

Also explained in

Compare how 3 books explain Kafka broker →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka for Architects. The section links point to the parts of the book it draws on.