概述
Spring Cloud Alibaba 是结合自身中间件对Spring Cloud 功能的实现。
Spring Cloud 功能列表
- 【配置中心】Distributed/versioned configuration
- 【注册中心】Service registration and discovery
- 【API 网关】Routing
- 【服务调用】Service-to-service calls
- 【负载均衡】Load balancing
- 【服务容错】Circuit Breakers
- 【分布式消息】Distributed messaging
Spring Cloud Alibaba 与 Spring Cloud 功能实现对照表
在Spring Cloud Alibaba 没出现之前我们大多数时候会使用到Netflix提过的组件,所以将 Netflix提供的中间件也加入对比。
| Spring Cloud | Spring Cloud Netflix | Spring Cloud Alibaba | |
|---|---|---|---|
| 配置中心 | Spring Cloud Config | archaius | Nacos |
| 注册中心 | - | Eureka | Nacos |
| 服务调动 | Spring Cloud OpenFeign | - | Dubbo |
| 负载均衡 | Spring Cloud LoadBalancer | Ribbon | Dubbo |
| 服务容错 | - | Hystrix | Sentinel |
| API网管 | Spring Cloud Gateway | - | - |
| 消息驱动 | Spring Cloud Stream | - | Spring Cloud Bus RocketMQ |
| 链路追踪 | Spring Cloud Sleuth | - | Seata |
学习顺序
- Nacos
- Dubbo
- Sentinel
- RocketMQ
- Seata