This project configures a Spring Cloud Gateway that routes and secures microservices. The setup includes Spring Cloud Admin for centralized monitoring and management, and a Profile Microservice. Two endpoints of the Profile Microservice are publicly accessible, and performance can be benchmarked using the provided script.
Start the microservices locally (optimized for Linux environments):
-
Spring Cloud Admin: http://localhost:1111
- Provides centralized monitoring and management of services.
- Change log levels dynamically using the admin interface.
-
Spring Cloud Gateway: http://localhost:8080
- Protects the Profile Microservice.
- Configures routing and security for microservices.
-
Profile Microservice: http://localhost:2050
- Provides user profile management.
- Two endpoints are publicly accessible, with the rest secured by the gateway.
To benchmark the public endpoints of the Profile Microservice, run the provided script:
./benchmark.sh- Spring Cloud Gateway protects the Profile Microservice, allowing only authorized access to its secured endpoints.
- Spring Cloud Admin allows you to dynamically adjust log levels of services, helping with debugging and performance tuning.
-
GateWay Microservice: http://localhost:8080/swagger-ui.html
-
Profile Microservice: http://localhost:2050/swagger-ui.html
mvn spring-boot:run