View Code? Open in Web Editor
NEW
Spring Cloud projects from my study
License: MIT License
Shell 3.91%
Java 87.81%
Dockerfile 6.21%
HTML 2.07%
spring-cloud-study's Introduction
Spring Cloud + Netflix Stack
- Karyon
- Spring Cloud Gateway
- Eureka Server and Clients
- Hystrix and Dashboard
- RabbitMQ
- Will store the events from API's hystrix.
- Eureka Server
- Registry server to our service register themselves;
- Will be used by Zuul to proxy ingoing request.
- Zuul Server
- Our API Gateway;
- Query the Eureka server to get the registered services and create proxies for each one.
- Turbine Streamer
- The Turbine server to aggregate the metrics from state of hystrix commands.
- Monitor Dashboard
- The dashboard to visualize metrics.
- Stock Service
- Store Service
- Our Store API that consumes Stock API.
- Access:
http://localhost:15672/#/queues
- User: guest
- Password: guest
- Access:
http://localhost:8989/turbine.stream
- Access:
http://localhost:7979/hystrix
- Usar URL do Turbine Stream que é exibida no dashboard do Eureka
- Access:
http://localhost:8761/
- Request: GET
http://localhost:8761/eureka/apps
- Request some api:
http://localhost:8080/<service_name>/<path>
- Access page with links:
http://localhost:8080/
- Hystrix stream: GET
http://localhost:8080/actuator/hystrix.stream
- Direct request: GET
http://localhost:8090/stocks/products/123/available
- Gateway request: GET
http://localhost:8080/stock-service/stocks/products/123/available
- Direct request: GET
http://localhost:8095/store/order/item/123
- Gateway request: GET
http://localhost:9090/store-service/store/order/item/123
- Hystrix stream: GET
http://localhost:8095/actuator/hystrix.stream
ab -n 1000 -c 20 http://localhost:8080/stock-service/stocks/products/123/available
ab -n 1000 -c 20 http://localhost:8080/store-service/store/order/item/123
spring-cloud-study's People
Contributors
Stargazers
Watchers