Spring Cloud 生态研究
依次启动eureka,provider-reactive,consumer-reactive,gateway
- 直接访问 localhost:8763/hi?name=hongxi
- 通过网关访问 localhost:8764/demo-consumer-reactive/hi?name=hongxi
Spring Cloud Netflix | Spring Cloud 官方 | Spring Cloud Alibaba | Spring Cloud Consul | Spring Cloud Kubernetes | Spring Cloud Zookeeper | |
---|---|---|---|---|---|---|
分布式配置 | Archaius (已不维护) |
Spring Environment (编程模型统一) SCC Client/Server |
Nacos | Consul | Config Map | Zookeeper |
服务注册/发现 | Eureka 1.x Eureka 2.x (已不维护) |
Service Registry (编程模型统一) Service Discovery (编程模型统一) |
Nacos | Consul | Api Server | Zookeeper |
服务熔断 | Hystrix (已不维护) |
Spring Cloud Circuit Breaker (编程模型统一) |
Sentinel | - | - | - |
服务调用 | Feign | OpenFeign RestTemplate |
Dubbo RPC | - | - | - |
服务路由 | Zuul | Spring Cloud Gateway | Dubbo+Servlet | - | - | - |
分布式消息 | - | Spring Cloud Stream (编程模型统一) SCS RabbitMQ/Kafka |
SCS RocketMQ | SCS Consul | - | - |
消息总线 | - | Spring Cloud Bus (编程模型统一) |
SCB RocketMQ | SCB Consul | - | - |
负载均衡 | Ribbon (已不维护) |
Spring Cloud LoaderBalancer (编程模型统一) |
Dubbo LB | - | - | - |
分布式事务 | - | - | Seata | - | - | - |