https://github.com/qreolq/data-generator-microservice
This application produces data and sends it to Data consumer service with Apache Kafka.
https://github.com/qreolq/data-generator-microservice
apache-kafka ci-cd docker java spring
Last synced: about 2 months ago
JSON representation
This application produces data and sends it to Data consumer service with Apache Kafka.
- Host: GitHub
- URL: https://github.com/qreolq/data-generator-microservice
- Owner: qReolq
- Created: 2023-11-28T17:40:33.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-10T16:55:23.000Z (over 2 years ago)
- Last Synced: 2025-10-10T23:08:53.090Z (9 months ago)
- Topics: apache-kafka, ci-cd, docker, java, spring
- Language: Java
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Data-generator-microservice
This application produces data and sends it to [Data consumer service](https://github.com/qReolq/data-analyser-microservice) with Apache Kafka.
### Technologies
Spring(Boot), Docker, Apache Kafka, CI/CD(Github actions)
### Usage
You can find Docker compose file in [Data analyser service](https://github.com/qReolq/data-analyser-microservice) docker/docker-compose.yaml.
Application is running on port 8081.
### Environments
To start an application you need to pass variables to .env file.
* KAFKA_BOOTSTRAP_SERVERS - Bootstrap server in Kafka
### Endpoints
* POST /api/v1/data/send
Example JSON
```JSON
{
"sensorId": 1,
"timestamp": "2023-09-12T12:10:05",
"measurement": 12.5,
"measurementType": "TEMPERATURE"
}
```
* POST /api/v1/data/test/send
Example JSON
```JSON
{
"delayInSeconds": 3,
"measurementTypes": [
"POWER",
"VOLTAGE",
"TEMPERATURE"
]
}
```