Confluent

Enterprise only Premium Partner

Compress messages before sending to Kafkav3.16+

Compress producer batches before sending them to Confluent Cloud. This example uses lz4 compression. See config.compression_type for all supported codecs.

Prerequisites

Environment variables

  • KAFKA_TOPIC: The name of your Kafka topic.

  • CONFLUENT_CLUSTER_API_KEY: Your Confluent cluster API key.

  • CONFLUENT_CLUSTER_API_SECRET: Your Confluent cluster API key.

Set up the plugin

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!