kafka demo - quick start to produce/consume messages use case
https://developer.confluent.io/quickstart/kafka-docker/?build=apps#5-read-messages-from-the-topic
docker compose up -d
https://developer.confluent.io/quickstart/kafka-docker/?build=apps#3-create-a-topic
in docekr: https://developer.confluent.io/quickstart/kafka-docker/?build=apps#5-read-messages-from-the-topic
or
run full demo app (based on https://github.com/edenhill/librdkafka/blob/master/examples/rdkafka_example.cpp) in consumer mode to consume messages:
./build/bin/kafkafulldemo -C -t quickstart -b localhost -f ccb -p 0
./build.sh
demo app based on official example https://github.com/edenhill/librdkafka/blob/master/examples/producer.cpp
./build/bin/kafkademo localhost:9092 quickstart