Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.8.0
Description
Compressing data can reduce the bandwidth required for network transmission and decrease disk storage usage. If the compression types of the client and broker are inconsistent, it may lead to increased resource usage on the broker, such as higher CPU usage. Currently, the default compression type on the Kafka broker side is "PRODUCER". As I understand it, if the client does not use compression, the broker will not use compression either.
Can we add a new compression option on the broker side, such as "PRODUCER_OR_LZ4". With this option, if the client uses a compression type (like Snappy), the broker would follow the client's compression type (Snappy). If the client does not use compression, the broker would default to using LZ4.
If this suggestion makes sense, I would be happy to implement it.