KIP-390 — Support Compression Level
Accepted Kafka 3.8 ProducerBroker
Adds per-codec compression level configuration (`compression.gzip.level`, `compression.lz4.level`, `compression.zstd.level`) at the producer, broker, and topic levels. Kafka's fixed default compression level is a suboptimal trade-off for many workloads; some use cases prioritize smaller compressed size (higher level) while others prioritize CPU throughput (lower level), and the choice can yield up to 156% more messages/sec in benchmarks.
Details
| Author | Dongjin Lee |
| Status | Accepted |
| Kafka Version | 3.8 |
| JIRA | KAFKA-7632 |
| Wiki | View on Apache Wiki |
| Created | 2018-11-18 |
| Last Modified | 2024-05-21 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.