Skip to content

popek777/kafkademo

Repository files navigation

kafkademo

kafka demo - quick start to produce/consume messages use case

install kafka docker image

https://developer.confluent.io/quickstart/kafka-docker/?build=apps#5-read-messages-from-the-topic

start kafka broker

docker compose up -d

create kafka topic

https://developer.confluent.io/quickstart/kafka-docker/?build=apps#3-create-a-topic

run kafka consumer

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 kafkademo app

./build.sh

run denmo app producing messages

demo app based on official example https://github.com/edenhill/librdkafka/blob/master/examples/producer.cpp

./build/bin/kafkademo localhost:9092 quickstart

FAQ

Where can I find high-level design information about kafka?

https://kafka.apache.org/082/documentation.html

Releases

No releases published

Packages

No packages published