Build Configuration Options

Compression Options

For handling compressed messages, libkafka-asio relies on common compression libraries: zlib and snappy. Of course, this means that an application that uses libkafka-asio must link against those compression libraries. If, for some reason, you do not want to do this, there are several build configuration options available to either turn off specific compression algorithms or compression handling at all.

Turn off handling of compressed messages

#define LIBKAFKAASIO_NO_COMPRESSION

Turn off GZIP compression algorithm

#define LIBKAFKAASIO_NO_COMPRESSION_GZIP

Turn off Snappy compression algorithm

#define LIBKAFKAASIO_NO_COMPRESSION_SNAPPY