M1-PE-Kafka/applications/consumer
2024-07-03 20:26:16 +02:00
..
gradle/wrapper split the project into 3 modules and an additional module for common code 2024-07-03 12:42:18 +02:00
src/main improved the documentation for each module and removed the automatic creation of topics since they are already created automatically 2024-07-03 20:26:16 +02:00
.dockerignore split the project into 3 modules and an additional module for common code 2024-07-03 12:42:18 +02:00
.gitignore split the project into 3 modules and an additional module for common code 2024-07-03 12:42:18 +02:00
build.gradle.kts improved the documentation for each module and removed the automatic creation of topics since they are already created automatically 2024-07-03 20:26:16 +02:00
gradle.properties split the project into 3 modules and an additional module for common code 2024-07-03 12:42:18 +02:00
gradlew split the project into 3 modules and an additional module for common code 2024-07-03 12:42:18 +02:00
gradlew.bat split the project into 3 modules and an additional module for common code 2024-07-03 12:42:18 +02:00
README.md improved the documentation for each module and removed the automatic creation of topics since they are already created automatically 2024-07-03 20:26:16 +02:00
settings.gradle.kts split the project into 3 modules and an additional module for common code 2024-07-03 12:42:18 +02:00

Module: Consumer

This module contain the code responsible for receiving values, displaying them in the container output and hosting the REST API where we can find the latest value received.

Build

This project is built automatically when using docker-compose at the root.

However, you can still build it manually with the following command :

./gradlew build

Configuration

This module can be easily modified with the following environment variables :

Name Required Format Default Description
KAFKA_BOOTSTRAP_SERVERS true <ip>[:port] / The Kafka server address
TEMPERATURE_TOPIC true string of alphanumeric characters, ".", "_" and "-" / The Kafka topic were the temperature can be found