Kakfa Large messages
Did you know that .... ?
Kafka configuration limits the size of messages that it's allowed to send.?By default, this limit is 1MB.
At a minimum, we need to configure these two properties :
More Optional Configurations:
3. Kafka broker Configuration
Property, “message.max.bytes“, can be used to allow ALL topics on a?broker. add this property in Kafka Broker's server.properties?config file.
Note : he maximum value among “message.max.bytes”?and “max.message.bytes” will be the effective value used.
For consuming large messages, to avoid performance impact on the consumer application :
4. Consumer Configuration
Note : the value of?"fetch.max.bytes"?should be higher than?"max.partition.fetch.bytes".
Generally avoid sending large messages using Kafka. The processing of large messages consumes more CPU and memory of our producer and consumer OR :
Refrences :
Sr. Software Engineering Manager for Streaming SRE at LinkedIn
1 年FYI: Kafka is misspelled in the post title.