I need to use Event Streams from a C++ program. Looking for sample code.
Tried ./rdkafka_example from librdkafka, I dont get any error message but messages dont get through. It may an be authorization issue as I could not find where to supply credentials to the code. Is there a sample c++ program anywhere?
Librdkafka comes with a few C++ examples that can be used with Event Streams.
For example, for Event Streams on Cloud, using the
rdkafka_example_cpp
sample:To produce, run:
To Consume, run:
Replace the placeholders between
<>
with your Event Streams credentials.See how the arguments passed with
-X
are used in the example to build a Config: https://github.com/edenhill/librdkafka/blob/master/examples/rdkafka_example.cpp#L342-L375