Registry / messaging / cppkafka

cppkafka

JSON →
library0.4.1vcpkgunverified

cppkafka allows C++ applications to consume and produce messages using the Apache Kafka protocol. The library is built on top of librdkafka, and provides a high level API that uses modern C++ features to make it easier to write code while keeping the wrapper's performance overhead to a minimum.

vcpkg install cppkafka
INSTALL
IMPORT
SIG · CPPKAFKA
C
cppkafka
messagingcppv0.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cppkafka/cppkafka.h
#include <cppkafka/cppkafka.h>

Create a Kafka consumer and subscribe to a topic

#include <cppkafka/cppkafka.h> #include <iostream> using namespace cppkafka; int main() { Configuration config = { { "metadata.broker.list", "localhost:9092" }, { "group.id", "test-group" } }; Consumer consumer(config); consumer.subscribe({ "test-topic" }); std::cout << "Consumer subscribed to test-topic" << std::endl; return 0; }
Debug
Known issues
breakingRequires librdkafka to be installed; ABI compatibility depends on librdkafka version
fix
Ensure librdkafka version matches the one used to build cppkafka
affects: all
Upgrade
Version history
0.4.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
30
OpenAI (training)
1
Resources

No resource links recorded.

cppkafka — pip install cppkafka · libregistry