This example shows how to send events to Apache Kafka using Quarkus and the SmallRye's extension of the Eclipse MicroProfile Reactive Messaging.
To start the local development Kafka cluster:
-
Be sure Docker Deskop or Podman is running.
-
Open a terminal window and execute the following command:
docker-compose -f ../strimzi-all-in-one/docker-compose.yaml up
-
Wait until all the components are up and running.
The application is based on Quarkus so it can be started executing the following command:
mvn compile quarkus:dev
This will start the application sending uber vehicle information every 5 seconds to the uber
topic in the Kafka cluster.