Sample application to experiment with Spring Boot, Kafka, Influxdb and docker.
Basically, it just display the average of the last X prices on user request, with X an input parameter. The user input/output takes place on the web application.
- Make sure to have docker compose installed in host machine
$ docker-compose --version
docker-compose version 1.22.0, build f46880fe
- Start the application
$ docker-compose up
- Access the application in local environment with
http://localhost:8081
Influxdb query for the average X priceweb frontend, to be implemented in data consumer firstDockerize the jarsonsolidate the app and the dependencies with docker composeKafkaInfluxdbConsumerProducer
- Extract the web UI into separated services
- Use Spring Cloud to coordinate with different components
- Extract the Web UI to a separate spring service from
Consumer - Externalize configuration in
spring-cloud-config - Adopt Spring Cloud Eureka for service discovery
Web UIinvokeConsumerwithfeignclient
- Extract the Web UI to a separate spring service from
- Deploy the app in kubernetes