Demo for Spring Boot 3(`master` branch)/2(other branches) and Spring Cloud microservices with distributed configuration (Spring Cloud Config), service discovery (Eureka), API gateway (Spring Cloud Gateway, Zuul), Swagger/OpenAPI documentation (Springdoc), logs correlation using Spring Cloud Sleuth/Micrometer OTEL and many more
In this project I'm demonstrating you the most interesting features of Spring Cloud Project for building microservice-based architecture.
Currently you may find here some examples of microservices implementation using different projects from Spring Cloud. All the examples are divided into the branches and described in a separated articles on my blog. Here's a full list of available examples:
Build the apps with images (we need ji for config-service
since it contains curl
):
$ mvn clean package -Pbuild-image
Then run all the containers with docker-compose
:
$ docker-compose up
In the most cases you need to have Maven and JDK8+. In the fourth example with OpenShift you will have to run Minishift on your machine. The best way to run the sample applications is with IDEs like IntelliJ IDEA or Eclipse.
Our sample microservices-based system consists of the following modules:
native
mode. The configuration files are placed on the classpath.The following picture illustrates the architecture described above.