Micro Service Architecture with Spring Boot and Spring Cloud
This is a proof-of-concept application, which demonstrates Microservice Architecture Pattern using Spring Boot, Spring Cloud and Docker. With a pretty neat user interface, by the way.
Create the Network C2C call : docker network create spring-microservice-network
docker run -d --network spring-microservice-network --name registry -p 8761:8761 bharathsimbu/registry
docker run -d --network spring-microservice-network --name gateway -p 8040:8040 bharathsimbu/gateway
docker run -d --network spring-microservice-network --name product --link gateway -p 8010:8010 bharathsimbu/product
docker run -d --network spring-microservice-network --name inventory -p 8020:8020 bharathsimbu/inventory
docker ps -a
docker rmi bharathsimbu/product
docker-compose up -d
docker-compose down
access our log API: http://localhost:8010/actuator/loggers
POST request http://localhost:8080/actuator/loggers/com.jsoftgroup {"configuredLevel":"TRACE","effectiveLevel":"TRACE"}
https://cassiomolin.com/2019/06/30/log-aggregation-with-spring-boot-elastic-stack-and-docker/
https://datamify.com/spring/spring-boot-monitoring-actuator-prometheus-grafana/