-
Notifications
You must be signed in to change notification settings - Fork 0
Weather Report Project using Spring cloud
HaoranYu edited this page Jun 11, 2019
·
5 revisions
micro-weather-eureka-server port=8761
msa-weather-collection-eureka-feign port=8081
msa-weather-collection-eureka-feign port=8082
msa-weather-data-eureka port=8083
msa-weather-data-eureka port=8084
msa-weather-city-eureka port=8085
msa-weather-city-eureka port=8086
msa-weather-report-eureka-feign-gateway-hystrix port=8087
msa-weather-report-eureka-feign-gateway-hystrix port=8088
msa-weather-eureka-client-zuul port=8089
Techs:
- Use Eureka Server and Eureka Client to implement service discovery and service registration.
- Use OpenFeign to implement a client-side load balancer
- Use Zuul to implement API gateway as an intelligent routing micro-service
- Use Config Server and Config Client to implement externalized configuration to have a central place to manage external properties for applications across all environments.
- Use Hystrix Circuit Breaker to implement fallback method. If there is such a failure, it will open the circuit and forward the call to a fallback method.
- 只有collection 和 report两者是service comsumer,会使用到其他的data和city的API。
- data和city都是service provider
- 数据采集微服务在天气数据同步任务中,依赖于城市数据API微服务
- 天气预报微服务查询天气信息,依赖于天气数据API微服务
- 天气预报微服务提供的城市列表,依赖于城市数据API微服务
- Introduce auto-scaling.