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.
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.
Related concepts
- offsetuses · An offset is a position or displacement measured relative to a reference point, such as within an ordered sequence, memory region, or layout.
- sink nodeused by · A sink node is a terminal or receiving component in a data or flow system that accepts incoming data, messages, or flow for consumption, processing, or storage.
- clientused by · A client is a person, organization, device, or software component that receives or uses a product, service, resource, or functionality provided by another entity.
- fetch.min.bytesconfigured by · fetch.min.bytes is a Kafka consumer configuration specifying the minimum amount of data a broker should accumulate before responding to a fetch request.
- Kafka brokeruses · A Kafka broker is a server process in an Apache Kafka cluster that stores records and handles producer, consumer, and other client requests.
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.

