What does fetch.message.max.bytes configure?

Study for the CCDAK Apache Kafka Test. Use flashcards and multiple choice questions with hints and explanations for each question. Prepare thoroughly for your exam!

Multiple Choice

What does fetch.message.max.bytes configure?

Explanation:
Fetching in Kafka happens through fetch requests from a consumer to the broker. fetch.message.max.bytes sets a cap on how much data the broker will return in one of those fetch responses. In other words, it limits the total amount of message data that can be pulled in a single fetch, which helps control memory use on the broker and keep network traffic predictable. If a message batch would exceed this limit, the broker returns only the portion that fits, and the consumer may need additional fetches to get the rest. This setting is specifically about the data returned during fetch, not about replication, poll intervals, or session timeouts.

Fetching in Kafka happens through fetch requests from a consumer to the broker. fetch.message.max.bytes sets a cap on how much data the broker will return in one of those fetch responses. In other words, it limits the total amount of message data that can be pulled in a single fetch, which helps control memory use on the broker and keep network traffic predictable. If a message batch would exceed this limit, the broker returns only the portion that fits, and the consumer may need additional fetches to get the rest. This setting is specifically about the data returned during fetch, not about replication, poll intervals, or session timeouts.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy