Test of a Kafka Zookeeper-less using docker and implementation of consumer and producer in rust language.
You must have docker and docker-compose installed in your environment. After that, execute the following command:
make up
Or run broker in daemon mode:
make up-daemon
Use bash scripts "bash" directory for create a topic inside Kafka broker.
bash/create-topic.sh <topic name>
Inside "rust" directory has two sub-directories with a rust producer (rust-prod) and consumer (rust-con).
Change directory for each of them to execute a produce or a consume.
To produce:
cd rust/rust-prod
cargo run
To consume:
cd rust/rust-con
cargo run