Prereqs:
-
Docker for Mac or Docker for Windows
-
Maven
-
Java
-
brew install kafkacat
docker-compose up
This leverages the docker-compose.yaml file to start a "local" zookeeper + Apache Kafka broker on ports 2181 and 9092
kafkacat -P -b localhost -t my-topic kafkacat -P -b localhost -t atopic kafkacat -P -b localhost -t btopic # stop with ctrl-z
kafkacat -C -b localhost -t my-topic kafkacat -C -b localhost -t atopic kafkacat -C -b localhost -t btopic # stop with ctrl-c
cd qrestkafkaproducer mvn compile quarkus:dev open http://localhost:8080/produce
cd qkafkaconsumerws mvn compile quarkus:dev open http://localhost:8081/index.html
cd qkafkaconsumersse mvn compile quarkus:dev open http://localhost:8082/stream
cd qkafka-inout mvn compile quarkus:dev
to cause reload of inout
curl http://localhost:8083/reset