confluentinc/librdkafka
FreeThe Apache Kafka C/C++ library
About confluentinc/librdkafka
librdkafka is a robust, high-performance C library implementation of the Apache Kafka protocol. It provides producer, consumer, and admin clients with full support for Exactly-Once-Semantics (EOS), including idempotent and transactional producers. The library handles compression (snappy, gzip, lz4, zstd), SSL/TLS encryption, and multiple SASL mechanisms (GSSAPI, PLAIN, SCRAM, OAUTHBEARER). Designed for reliability and speed, it achieves over 1 million messages/second for producers and 3 million messages/second for consumers. librdkafka is portable across Linux, macOS, Windows, Solaris, FreeBSD, AIX, and other platforms, and is distributed under the 2-clause BSD license. It also offers a high-level balanced KafkaConsumer, admin client functionality, and comprehensive statistics metrics.
Key Features
Pros & Cons
- Very high performance: >1M msg/s producer, >3M msg/s consumer
- Full Exactly-Once-Semantics support for delivery guarantees
- Portable across many operating systems and architectures
- Stable C and C++ APIs with long-term backwards compatibility
- Comprehensive documentation and configuration options
- Open-source under permissive BSD license
- C/C++ only – not suitable for higher-level languages without wrapping
- Requires understanding of Kafka concepts and configuration
- Master branch is actively developed; production use should use latest release
- Not an AI/ML tool; does not provide AI capabilities