Compress messages before sending to Kafkav3.16+

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

Environment variables

  • KAFKA_TOPIC: The name of your Kafka topic.

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!