drools-quarkus-extension/drools-quarkus-examples/drools-quarkus-examples-reactive/README.md
There's a useful docker-compose.yml in the root that starts a dedicated Kafka instance for quick tests.
Simply start it with this command from the root of the repo:
docker-compose up -d
Or, if your docker version supports docker compose,
docker compose up -d
To shutdown the instances.
docker-compose down
or
docker compose down
mvn clean package
java -jar target/quarkus-app/quarkus-run.jar
To stop the quarkus process, press Ctrl+C
Send Event with JSON format to "events" topic.
echo '{"type":"temperature","value":35}' | kafka-console-producer.sh --broker-list localhost:9092 --topic events
You will see the result in "alerts" topic via Kafdrop ( http://localhost:9000 ).
{"severity":"warning","message":"Event [type=temperature, value=35]"}
Note that this example doesn't expose REST endpoints.