zstd
A compression codec Kafka supports that usually gives the best ratio for the time it costs.
In more detail
Producers set compression.type=zstd to compress whole record batches. It typically shrinks data more than gzip at a similar or lower processor cost, which is why it is a common choice for high-volume topics.
Example
compression.type=zstdRelated terms
- compression.type — The producer setting that compresses each batch with a codec such as gzip, snappy, lz4 or zstd before sending it.
- gzip — The command that compresses a single file and replaces it with a smaller .gz version; gunzip reverses it.
- record batch — A group of records sent to the broker together in one request, instead of one request per record.
Taught in
- Retention Deletes Files, Not Records — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep