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.
What to know first
- clientA client is a person, organization, device, or software component that receives or uses a product, service, resource, or functionality provided by another party or system.
- offsetAn offset is a position or displacement measured relative to a reference point, such as within an ordered sequence, memory region, or layout.
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.
- 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 party or system.
- 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.
- sink nodeused by · A sink node is a destination component or endpoint that receives data, messages, events, or flow from an upstream source for consumption or processing.
- 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.
Questions about fetch request
What is 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.
Which Manning books explain fetch request?
Kafka Streams in Action, Second Edition and Apache Kafka in Action.
What should I know before learning fetch request?
Manning books that teach fetch request usually introduce client and offset first.
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.

