目錄git
@github
Spring Cloud Alibaba 致力於提供微服務開發的一站式解決方案。此項目包含開發分佈式應用微服務的必需組件,方便開發者經過 Spring Cloud 編程模型輕鬆使用這些組件來開發分佈式應用服務。spring
依託 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>
參考:
https://github.com/alibaba/spring-cloud-alibaba/blob/master/README-zh.md https://github.com/alibaba/spring-cloud-alibaba/wiki