Skip to content

Test of a Kafka Zookeeper less using docker and a implementation of consumer and producer in rust language.

Notifications You must be signed in to change notification settings

icunhacorrea/kafka-zookeeper-less

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kafka-zookeeper-less

Test of a Kafka Zookeeper-less using docker and implementation of consumer and producer in rust language.

Run brokers kafka

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

Create Topic

Use bash scripts "bash" directory for create a topic inside Kafka broker.

    bash/create-topic.sh <topic name>

Produce and consume message

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

About

Test of a Kafka Zookeeper less using docker and a implementation of consumer and producer in rust language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published