liveBook · Manning

Fetch request

A fetch request is a Kafka protocol request that asks a broker to return records from a topic partition beginning at a specified offset.

How 2 Manning books explain it

Kafka Streams in Action, Second Edition

A fetch request is a Kafka client request that asks a broker to return records from a topic partition starting at a specified offset.

How it is used
Uses consumer-to-broker requests to read retained records from topic partitions in event-streaming applications.
How deep it goes
Explains request inputs, broker queueing, batch retrieval, responses, retention effects, and polling cache behavior without protocol internals.
Examples
Demonstrates broker diagrams and a Java sales consumer that subscribes, polls, and logs transaction values.
What you can do after
Operate a KafkaConsumer that retrieves and processes topic records through subscription and polling.

Read how Kafka Streams in Action, Second Edition explains fetch request →

Apache Kafka in Action

A fetch request is a Kafka protocol request for retrieving records from a partition.

How it is used
Retrieves partition records for consumers and synchronizes follower replicas with their leaders.
How deep it goes
Traces offsets, queues, I/O, page cache, request purgatory, response timing, and replication, without detailing protocol fields.
Examples
Demonstrates kafka-console-consumer.sh reading products.prices.changelog from partition 0 and offset 0, plus follower replication.
What you can do after
Apply it via Kafka consumers by choosing starting offsets and tuning fetch.min.bytes and fetch.max.wait.ms for performance.

Read how Apache Kafka in Action explains fetch request →

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.