@
spring cloud alibaba 致力于提供微服务开发的一站式解决方案。此项目包含开发分布式应用微服务的必需组件,方便开发者通过 spring cloud 编程模型轻松使用这些组件来开发分布式应用服务。
依托 spring cloud alibaba,您只需要添加一些注解和少量配置,就可以将 spring cloud 应用接入阿里微服务解决方案,通过阿里中间件来迅速搭建分布式应用系统。
sentinel: 把流量作为切入点,从流量控制、熔断降级、系统负载保护等多个维度保护服务的稳定性。
nacos: 一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台。
rocketmq: 一款开源的分布式消息系统,基于高可用分布式集群技术,提供低延时的、高可靠的消息发布与订阅服务。
dubbo: apache dubbo™ 是一款高性能 java rpc 框架。
seata: 阿里巴巴开源产品,一个易于使用的高性能微服务分布式事务解决方案。
alibaba cloud acm: 一款在分布式架构环境中对应用配置进行集中管理和推送的应用配置中心产品。
alibaba cloud oss: 阿里云对象存储服务(object storage service,简称 oss),是阿里云提供的海量、安全、低成本、高可靠的云存储服务。您可以在任何应用、任何时间、任何地点存储和访问任意类型的数据。
alibaba cloud schedulerx: 阿里中间件团队开发的一款分布式任务调度产品,提供秒级、精准、高可靠、高可用的定时(基于 cron 表达式)任务调度服务。
alibaba cloud sms: 覆盖全球的短信服务,友好、高效、智能的互联化通讯能力,帮助企业迅速搭建客户触达通道。
目前已经开源的组件有:sentinel, nacos,rocketmq,dubbo
本系列文章目的就是介绍以上开源组件的一些基本使用。
下面简单介绍一下开源组件和目前的springcloud、springboot依赖关系。
spring cloud version | spring cloud alibaba version | spring boot version |
---|---|---|
spring cloud greenwich | 0.9.0.release | 2.1.x.release |
spring cloud finchley | 0.2.x.release | 2.0.x.release |
spring cloud edgware | 0.1.x.release | 1.5.x.release |
spring cloud alibaba version | sentinel version | nacos version | rocketmq version | dubbo version | seata version |
---|---|---|---|---|---|
0.9.0.release or 0.2.2.release or 0.1.2.release | 1.5.2 | 1.0.0 | 4.4.0 | 2.7.1 | 0.4.2 |
0.2.1.release or 0.1.1.release | 1.4.0 | 0.6.2 | 4.3.1 | ❌ | ❌ |
0.2.0.release or 0.1.0.release | 1.3.0-ga | 0.3.0 | ❌ | ❌ | ❌ |
spring cloud alibaba bom 包含了它所使用的所有依赖的版本。
如果需要使用 spring cloud greenwich 版本,请在 dependencymanagement 中添加如下内容
<dependency> <groupid>org.springframework.cloud</groupid> <artifactid>spring-cloud-alibaba-dependencies</artifactid> <version>0.9.0.release</version> <type>pom</type> <scope>import</scope> </dependency>
如果需要使用 spring cloud finchley 版本,请在 dependencymanagement 中添加如下内容
<dependency> <groupid>org.springframework.cloud</groupid> <artifactid>spring-cloud-alibaba-dependencies</artifactid> <version>0.2.2.release</version> <type>pom</type> <scope>import</scope> </dependency>
如果需要使用 spring cloud edgware 版本,请在 dependencymanagement 中添加如下内容
<dependency> <groupid>org.springframework.cloud</groupid> <artifactid>spring-cloud-alibaba-dependencies</artifactid> <version>0.1.2.release</version> <type>pom</type> <scope>import</scope> </dependency>
如对本文有疑问, 点击进行留言回复!!
网友评论