It's a Kafka log compaction PoC application.
Script | Desc |
---|---|
bin/01-run-kafka.sh | starts zookeeper and kafka configured for compaction in docker |
bin/03-create-kafka-topic.sh | creates kafka topic with compaction configuration |
bin/04-run-kafka-producer.sh | runs kafka producer |
bin/05-run-kafka-consumer.sh | runs kafka consumer |
- Use kafka to produce and consumes data
bin/01-run-kafka.sh
bin/03-create-kafka-topic.sh ex-topic-name
bin/04-run-kafka-producer.sh ex-topic-name
bin/05-run-kafka-consumer.sh ex-topic-name
- Use kafka-client liblaries example
bin/01-run-kafka.sh
bin/03-create-kafka-topic.sh ex-topic-name
./gradlew :kafka-producer-app:run -Ptopic=ex-topic-name
./gradlew :kafka-consumer-app:run -Ptopic=ex-topic-name