What is the default size of a Kafka message?

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 is the default size of a Kafka message?

Explanation:
Kafka limits the size of a single message using the broker setting that controls the maximum bytes per message. By default this value is 1,000,000 bytes, which is about 1 MB. That means a single record cannot be larger than roughly 1 MB unless you raise this limit. If you need to publish bigger messages, you’ll need to increase this broker setting (and, if needed, the producer’s max.request.size) and be mindful of the impact on memory, network I/O, and throughput.

Kafka limits the size of a single message using the broker setting that controls the maximum bytes per message. By default this value is 1,000,000 bytes, which is about 1 MB. That means a single record cannot be larger than roughly 1 MB unless you raise this limit. If you need to publish bigger messages, you’ll need to increase this broker setting (and, if needed, the producer’s max.request.size) and be mindful of the impact on memory, network I/O, and throughput.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy