Skip to content

Commit e82378c

Browse files
committed
docs:新增第二代Spring Cloud Alibaba主流时代文章
docs:Spring Cloud Alibaba版本介绍文章
1 parent d5c2a66 commit e82378c

3 files changed

Lines changed: 114 additions & 3 deletions

File tree

docs/.vuepress/config.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,12 @@ module.exports = {
148148
link: '/md/Dubbo/01-互联网架构的发展历程.md'
149149
},
150150
{
151-
text: 'Spring Cloud Alibaba',
151+
text: 'Spring Cloud',
152152
items: [
153153
{text: 'SpringCloudAlibaba介绍', link: '/md/spring/spring-cloud/SpringCloudAlibaba介绍.md'},
154-
{text: 'SpringCloudAlibaba技术栈介绍', link: '/md/spring/spring-cloud/SpringCloudAlibaba技术栈介绍.md'}
154+
{text: 'SpringCloudAlibaba技术栈介绍', link: '/md/spring/spring-cloud/SpringCloudAlibaba技术栈介绍.md'},
155+
{text: '第二代SpringCloudAlibaba主流时代', link: '/md/spring/spring-cloud/第二代SpringCloudAlibaba主流时代.md'},
156+
{text: 'SpringCloudAlibaba版本介绍', link: '/md/spring/spring-cloud/SpringCloudAlibaba版本介绍.md'}
155157
]
156158
},
157159
{
@@ -297,7 +299,9 @@ module.exports = {
297299
sidebarDepth: 0,
298300
children: [
299301
"SpringCloudAlibaba介绍.md",
300-
"SpringCloudAlibaba技术栈介绍.md"
302+
"SpringCloudAlibaba技术栈介绍.md",
303+
"第二代SpringCloudAlibaba主流时代.md",
304+
"SpringCloudAlibaba版本介绍.md"
301305
]
302306
}
303307
],
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Spring Cloud Alibaba版本介绍
2+
> 由于 Spring Boot 3.0,Spring Boot 2.7~2.4 和 2.4 以下版本之间变化较大,目前企业级客户老项目相关 Spring Boot 版本仍停留在 Spring Boot 2.4 以下,为了同时满足存量用户和新用户不同需求,社区以 Spring Boot 3.0 和 2.4 分别为分界线,同时维护 2022.x、2021.x、2.2.x 三个分支迭代。如果不想跨分支升级,如需使用新特性,请升级为对应分支的新版本。 为了规避相关构建过程中的依赖冲突问题,我们建议可以通过 [云原生应用脚手架](https://start.aliyun.com/) 进行项目创建。
3+
4+
## 2022.x 分支
5+
>适配 Spring Boot 3.0,Spring Cloud 2022.x 版本及以上的 Spring Cloud Alibaba 版本按从新到旧排列如下表(最新版本用*标记): (注意,该分支 Spring Cloud Alibaba 版本命名方式进行了调整,未来将对应 Spring Cloud 版本,前三位为 Spring Cloud 版本,最后一位为扩展版本,比如适配 Spring Cloud 2022.0.0 版本对应的 Spring Cloud Alibaba 第一个版本为:2022.0.0.0,第个二版本为:2022.0.0.1,依此类推)
6+
7+
Spring Cloud Alibaba Version |Spring Cloud Version| Spring Boot Version
8+
---|----|--
9+
2022.0.0.0*|Spring Cloud 2022.0.0|3.0.2
10+
2022.0.0.0-RC2|Spring Cloud 2022.0.0|3.0.2
11+
2022.0.0.0-RC1|Spring Cloud 2022.0.0|3.0.0
12+
13+
## 2021.x 分支
14+
>适配 Spring Boot 为 2.4,Spring Cloud Hoxton 版本及以下的 Spring Cloud Alibaba 版本按从新到旧排列如下表(最新版本用*标记):
15+
16+
Spring Cloud Alibaba Version| Spring Cloud Version| Spring Boot Version
17+
---|----|--
18+
2021.0.5.0*|Spring Cloud 2021.0.5|2.6.13
19+
2021.0.4.0|Spring Cloud 2021.0.4|2.6.11
20+
2021.0.1.0|Spring Cloud 2021.0.1|2.6.3
21+
2021.1|Spring Cloud 2020.0.1|2.4.2
22+
## 2.2.x 分支
23+
>适配 Spring Boot 为 2.4,Spring Cloud Hoxton 版本及以下的 Spring Cloud Alibaba 版本按从新到旧排列如下表(最新版本用*标记):
24+
25+
Spring Cloud Alibaba Version |Spring Cloud Version |Spring Boot Version
26+
---|----|--
27+
2.2.10-RC1*|Spring Cloud Hoxton.SR12|2.3.12.RELEASE
28+
2.2.9.RELEASE|Spring Cloud Hoxton.SR12|2.3.12.RELEASE
29+
2.2.8.RELEASE|Spring Cloud Hoxton.SR12|2.3.12.RELEASE
30+
2.2.7.RELEASE|Spring Cloud Hoxton.SR12|2.3.12.RELEASE
31+
2.2.6.RELEASE|Spring Cloud Hoxton.SR9|2.3.2.RELEASE
32+
2.2.1.RELEASE|Spring Cloud Hoxton.SR3|2.2.5.RELEASE
33+
2.2.0.RELEASE|Spring Cloud Hoxton.RELEASE|2.2.X.RELEASE
34+
2.1.4.RELEASE|Spring Cloud Greenwich.SR6|2.1.13.RELEASE
35+
2.1.2.RELEASE|Spring Cloud Greenwich|2.1.X.RELEASE
36+
2.0.4.RELEASE(停止维护,建议升级)|Spring Cloud Finchley|2.0.X.RELEASE
37+
1.5.1.RELEASE(停止维护,建议升级)|Spring Cloud Edgware|1.5.X.RELEASE
38+
## 组件版本关系
39+
>每个 Spring Cloud Alibaba 版本及其自身所适配的各组件对应版本如下表所示(注意,Spring Cloud Dubbo 从 2021.0.1.0 起已被移除出主干,不再随主干演进):
40+
41+
Spring Cloud Alibaba Version |Sentinel Version| Nacos Version| RocketMQ Version| Dubbo Version| Seata Version
42+
---|----|--|--|--|--
43+
2022.0.0.0|1.8.6|2.2.1|4.9.4|~|1.7.0
44+
2022.0.0.0-RC2|1.8.6|2.2.1|4.9.4|~|1.7.0-native-rc2
45+
2021.0.5.0|1.8.6|2.2.0|4.9.4|~|1.6.1
46+
2.2.10-RC1|1.8.6|2.2.0|4.9.4|~|1.6.1
47+
2022.0.0.0-RC1|1.8.6|2.2.1-RC|4.9.4|~|1.6.1
48+
2.2.9.RELEASE|1.8.5|2.1.0|4.9.4|~|1.5.2
49+
2021.0.4.0|1.8.5|2.0.4|4.9.4|~|1.5.2
50+
2.2.8.RELEASE|1.8.4|2.1.0|4.9.3|~|1.5.1|
51+
2021.0.1.0|1.8.3|1.4.2|4.9.2|~|1.4.2
52+
2.2.7.RELEASE|1.8.1|2.0.3|4.6.1|2.7.13|1.3.0
53+
2.2.6.RELEASE|1.8.1|1.4.2|4.4.0|2.7.8|1.3.0
54+
2021.1 or 2.2.5.RELEASE or 2.1.4.RELEASE or 2.0.4.RELEASE|1.8.0|1.4.1|4.4.0|2.7.8|1.3.0
55+
2.2.3.RELEASE or 2.1.3.RELEASE or 2.0.3.RELEASE|1.8.0|1.3.3|4.4.0|2.7.8|1.3.0
56+
2.2.1.RELEASE or 2.1.2.RELEASE or 2.0.2.RELEASE|1.7.1|1.2.1|4.4.0|2.7.6|1.2.0
57+
2.2.0.RELEASE|1.7.1|1.1.4|4.4.0|2.7.4.1|1.0.0
58+
2.1.1.RELEASE or 2.0.1.RELEASE or 1.5.1.RELEASE|1.7.0|1.1.4|4.4.0|2.7.3|0.9.0
59+
2.1.0.RELEASE or 2.0.0.RELEASE or 1.5.0.RELEASE|1.6.3|1.1.1|4.4.0|2.7.3|0.7.1
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
# 第二代Spring Cloud Alibaba主流时代
3+
> spring cloud 现在已经是一种标准了,各公司可以基于它的编程模型编写自己的组件 ,比如Netflix、阿里巴巴都有自己的一套通过spring cloud 编程模型开发的分布式服务组件 。Spring Cloud Alibaba 主要包含 Sentinel、Nacos、RocketMQ、Dubbo、Seata 等组件。
4+
5+
## 第一代spring cloud 的组件
6+
7+
> 第一代实现: Spring Cloud Netflix
8+
9+
组件名称| 功能 | 描述
10+
-----| -----|-----
11+
Eureka |服务治理(注册、发现......)|
12+
Ribbon|客户端负载均衡器|
13+
Hystrix|服务之间远程调用时的熔断保护|Hystrix 的使用主要有三种方式 HystrixCommand 注解方式;结合 Feign 使用;结合 Zuul 使用
14+
Feign|通过定义接口的方式直接调用其他服务的 API|
15+
Zuul |服务网关|提供了路由、监控、弹性、安全等服务。Zuul 能够与 Eureka、Ribbon、Hystrix 等组件配合使用。
16+
Config|分布式配置中心组件|
17+
Sleuth|用于请求链路跟踪|
18+
Stream|用来为微服务应用构建消息驱动能力|
19+
20+
## Spring Cloud 二代组件
21+
22+
> 第二代实现: Spring Cloud Alibaba.
23+
> Spring Cloud Alibaba 是阿里巴巴结合自身的微服务实践而推出的微服务开发的一站式解决方案,是 Spring Cloud 第二代实现的主要组成部分。Spring Cloud Alibaba 吸收了 Spring Cloud Netflix 的核心架构思想,并进行了高性能改进。自 Spring Cloud Netflix 进入停更维护后,Spring Cloud Alibaba 逐渐代替它成为主流的微服务框架。Spring Cloud Alibaba 是国内首个进入 Spring 社区的开源项目。2018 年 7 月,Spring Cloud Alibaba 正式开源,并进入 Spring Cloud 孵化器中孵化;2019 年 7 月,Spring Cloud 官方宣布 Spring Cloud Alibaba 毕业,并将仓库迁移到 Alibaba Github OSS 下。
24+
25+
第一代组件|第一代使用情况|第二代组件
26+
-------- | -----|---
27+
Eureka|暂停了 2.X 版本的开发,1.X 的版本还会维护|Nacos
28+
Config|Apollo优势强于原有config|Apollo
29+
Zuul|Zuul1 基于 Servlet 构建,使用的是阻塞的 IO,性能并不是很理想|spring cloud gateway或者新一代higress
30+
Hystrix|Hystrix 停止开发|Sentinel
31+
32+
33+
## 基于springcloud第二代微服务基本组合组件
34+
组件|功能
35+
---|--
36+
Nacos|服务注册中心
37+
Apollo|分布式配置中心
38+
XXL-JOB|分布式定时任务中心
39+
SpringBoot|微服务组件
40+
Sentinel|服务熔断限流组件
41+
higress|微服务网关
42+
Spring Cloud OpenFeign|服务通信调用
43+
Seata|分布式事务
44+
RocketMQ|消息队列
45+
Skywalking|服务调用链监控系统
46+
Redis|分布式缓存
47+
ELK|日志收集、查询系统
48+
Prometheus|Metrics指标监控系统

0 commit comments

Comments
 (0)