What is the default size of a Kafka message?

Study for the Apache Kafka CCDAK Test. Use flashcards and multiple choice questions, with hints and explanations for each answer. Prepare effectively for your certification!

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 Examzify

You can unsubscribe at any time. Read our privacy policy