When I am sending messages to Kafka topic, I might get a single message which is much larger in size compared to other messages.
So it is required to compress at single message level. As per the https://cwiki.apache.org/confluence/display/KAFKA/Compression,
A set of messages can be compressed and represented as one compressed message.
Also as per the description given here https://github.com/apache/kafka/blob/0.10.1/clients/src/main/java/org/apache/kafka/clients/producer/ProducerConfig.java for the property compression.type,
Compression is of full batches of data, so the efficacy of batching will also impact the compression ratio (more batching means better compression).;
Shall I put batch size as one/disable batching to make the compression at each message level?