Skip to content

This application produces data and sends it to Data consumer service with Apache Kafka.

Notifications You must be signed in to change notification settings

qReolq/data-generator-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data-generator-microservice

This application produces data and sends it to Data consumer service with Apache Kafka.

Technologies

Spring(Boot), Docker, Apache Kafka, CI/CD(Github actions)

Usage

You can find Docker compose file in Data analyser service 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

{
  "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"
  ]
}

About

This application produces data and sends it to Data consumer service with Apache Kafka.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published