user-dept-sb-msa-eg

Microservice API architecture including 6 services, 2 microservices, service registry, circuit-break supported API gateway, circuit breaker dashboard, & config.

Services

Links:

Service Name Link Info
cloud-config-server CONFIG-SERVER http://localhost:9296/ Serves config from an external source
service-registry SERVICE-REGISTRY http://localhost:8761/ Tracks service status/details
cloud-gateway API-GATEWAY http://localhost:9191/actuator/info Routes links to microservices
hystrix-dashboard HYSTRIX-DASHBOARD (monitor gateway) http://localhost:9295/hystrix/monitor?stream=http://localhost:9191/actuator/hystrix.stream Visualizes circuitbreaker microservices
department-service DEPARTMENT-SERVICE http://localhost:9001 Microservice managing departments
user-service USER-SERVICE http://localhost:9002 Microservice managing departments

Setup

Test Circuitbreaker

Same as Setup but stop department-service), use the API to fetch departments whilst monitoring the hystrix-dashboard - the service should still respond but using a cloud-gateway circuitbreaker fallback controller.

Todo