This application produces data and sends it to Data consumer service with Apache Kafka.
Spring(Boot), Docker, Apache Kafka, CI/CD(Github actions)
You can find Docker compose file in Data analyser service docker/docker-compose.yaml
.
Application is running on port 8081.
To start an application you need to pass variables to .env file.
KAFKA_BOOTSTRAP_SERVERS
- Bootstrap server in Kafka
- POST
/api/v1/data/send
Example JSON
{
"sensorId": 1,
"timestamp": "2023-09-12T12:10:05",
"measurement": 12.5,
"measurementType": "TEMPERATURE"
}
- POST
/api/v1/data/test/send
Example JSON
{
"delayInSeconds": 3,
"measurementTypes": [
"POWER",
"VOLTAGE",
"TEMPERATURE"
]
}