liveBook · Manning

Metadata API

A metadata request is a Kafka client request that retrieves information about cluster brokers, topics, partitions, leadership, and assignments.

How 2 Manning books explain it

Kafka for Architects

A metadata request is a Kafka client request that retrieves cluster metadata such as partition leadership and broker assignments.

How it is used
Routes producer writes to current partition leaders by retrieving broker and partition assignments.
How deep it goes
Explains discovery, caching, refresh timing, and recovery from leadership changes without detailing protocol encoding.
Examples
Uses cached broker mappings, five-minute refreshes, stale-leader errors, and batch resends as concrete operational examples.
What you can do after
Diagnose producer routing failures by recognizing stale metadata and the client refresh-and-retry response.

Read how Kafka for Architects explains metadata API →

Apache Kafka in Action

A metadata request is a Kafka client request that retrieves information about topics, partitions, brokers, and partition leaders.

How it is used
Connects Kafka clients to the brokers and partition leaders required for producing or consuming messages.
How deep it goes
Explains request flow, cached cluster information, leader discovery, and failure recovery without detailing the request protocol.
Examples
Demonstrates kafka-topics.sh with one broker, multiple bootstrap servers, and a figure showing client-to-leader discovery.
What you can do after
Operate/configure Kafka clients with resilient bootstrap addresses and understand how they recover connections after leader changes.

Read how Apache Kafka in Action explains metadata API →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.