This application receives data from Data generator service with Apache Kafka and stores it in MongoDB.
Next, data is processed by Data store service.
Spring(Boot, JPA), Docker, MongoDB, Apache Kafka, CI/CD(Github actions)
To start an application you need to pass variables to .env file.
KAFKA_BOOTSTRAP_SERVERS
- bootstrap server in KafkaKAFKA_SUBSCRIBED_TOPICS
- kafka subscribed topicsMONGO_AUTHENTICATION_DATABASE
- mongoDB Authentication DatabaseMONGO_USERNAME
- username for MongoDBMONGO_PASSWORD
- password for MongoDBMONGO_DATABASE
- name of MongoDBMONGO_PORT
- port of MongoDBMONGO_HOST
- host of MongoDB
You can run all applications via docker-compose.yaml
from docker
folder.
Application is running on port 8082.
It contains all needed configs.
- Clone this repo into folder.
git clone https://github.com/qReolq/data-analyser-microservice.git
cd data-analyser-microservice/docker
- Start docker compose
docker compose up