Project goal is to create fast and easy to use mock message producer allowing stress kafka broker e.g. publish 2M messages
cargo run -- -b localhost:9092 -t topic-1 -m '{"a": 2}' -k "1234567890" -c 2000000-
Kafka dev broker Fast and easy way is to run it in a docker e.g. use my docker-compose kafka docker dev repository
-
librdkafka-dev e.g. on Debian/Ubuntu install with
sudo apt install librdkafka-dev
cargo build -rInstal prerequisites
sudo apt-get install cmake mingw-w64add windows as target build
rustup target add x86_64-pc-windows-gnuCompile with target
cargo build --target x86_64-pc-windows-gnu -rDisplays all usage options with --help flag
cargo run -- --helpInvoke compiled version with
kafka-mock-gen -b localhost:9092 -t topic-1 -m '{"k": 9999}' -k "1234567890" -c 2000000