Programmation Évènementiel - Kafka
Find a file
2024-06-23 13:22:13 +00:00
.run simplified and improved the docker configuration 2024-06-20 22:01:11 +02:00
gradle/wrapper initial commit 2024-06-11 09:29:31 +02:00
src/main cleaned the code to be as configurable as possible 2024-06-23 14:49:41 +02:00
.dockerignore initial commit 2024-06-11 09:29:31 +02:00
.gitignore initial commit 2024-06-11 09:29:31 +02:00
build.gradle.kts simplified and improved the docker configuration 2024-06-22 11:27:30 +02:00
docker-compose.yaml cleaned the code to be as configurable as possible 2024-06-23 14:49:41 +02:00
gradle.properties simplified and improved the docker configuration 2024-06-22 11:27:30 +02:00
gradlew initial commit 2024-06-11 09:29:31 +02:00
gradlew.bat initial commit 2024-06-11 09:29:31 +02:00
LICENSE added licensing file 2024-06-23 12:58:26 +00:00
README.md improved the README with badges 2024-06-23 13:22:13 +00:00
settings.gradle.kts initial commit 2024-06-11 09:29:31 +02:00

Kafka + Quarkus + Docker : Demonstration

License Kotlin Kafka Quarkus Docker

A small university project to discover the Quarkus Framework to build the application combined with the Kafka platform, the whole compatible with Docker.

Run

You can run the project very simply with either Intellij IDEA, or directly within a terminal.

Intellij IDEA

Simply clone and load the project into the IDE and in the run configurations, choose compose.

Terminal

Alternatively, you can build and run the project manually by using gradle and launching the application with docker-compose.

gradlew build
docker compose up

Configuration

If wished, you can modify the configuration of the docker-compose.yaml file to fit your need.

The container application can be easily modified with the following environment variables :

Name Required Format Default Description
KAFKA_BOOTSTRAP_SERVERS true <ip>[:port] / The Kafka server address
TOPIC_TEMPERATURE_CELSIUS false string of alphanumeric characters, ".", "_" and "-" temperature-celsius The name of the Kafka topic for the temperature in Celsius
TOPIC_TEMPERATURE_FAHRENHEIT false string of alphanumeric characters, ".", "_" and "-" temperature-fahrenheit The name of the Kafka topic for the temperature in Fahrenheit
TEMPERATURE_LOCATION true <latitude>, <longitude> 49.9, 2.3 (Amiens, France) The coordinates were to get the temperatures from

Expectation

The application container shall print the current temperature at the selected place in Fahrenheit every minute.