Introduction
Compression reduces the size of data sent between Kafka producers and brokers. It helps save network bandwidth and storage space, making Kafka more efficient and faster.
When you want to reduce network usage between your Kafka producers and brokers to save costs.
When your Kafka topics handle large messages and you want to store them efficiently on disk.
When you want to improve throughput by sending smaller compressed messages over the network.
When you want to balance CPU usage and compression speed by choosing the right compression type.
When you want to ensure compatibility with Kafka clients and brokers by using supported compression codecs.