I have been searching for C++ kafka consumer. I came across following which are for C++ kafka but there is no consumer.
https://github.com/adobe-research/libkafka (Only sample producer)
https://github.com/edenhill/librdkafka/tree/master/src-cpp
Does anyone have C++ kafka consumer based on the above work or any new way for C++ kafka consumer
librdkafka's examples/ directory contains a C++ consumer (and producer):
High-level balanced KafkaConsumer: https://github.com/edenhill/librdkafka/blob/master/examples/rdkafka_complex_consumer_example.cpp
Low-level legacy Consumer: https://github.com/edenhill/librdkafka/blob/master/examples/rdkafka_example.cpp#L395
As a follow up on Edenhill's answer, you can try cppkafka, a high level C++11 wrapper for librdkafka. There's some examples in there for you to look at.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With