1. 程式人生 > >Spring Cloud 2.x-前言

Spring Cloud 2.x-前言

Spring Cloud  Spring Boot 

微服務已經成為企業開發的標配,阿里的Dubbo已經被企業大規模使用,Spring Cloud作為後起之秀,同時也是 "Spring全家桶"Spring家族的成員,未來前景一片光明,是時候開始研究學習了.

網上大部分文章都是基於Spring Cloud 1.x 和 Spring Boot 1.x 進行搭建和介紹,Spring Cloud Finchley的Service Release 2 (SR2) 版本已釋出,那就直接上手2.x. Spring Cloud Finchley 基於 Spring Boot 2.0.x 而構建

.

檢視釋出說明以瞭解更多資訊,可從 Maven中央倉庫獲取原始碼。

已升級的模組

模組 版本
Spring Cloud Gateway 2.0.2.RELEASE
Spring Cloud Sleuth 2.0.2.RELEASE
Spring Cloud Config 2.0.2.RELEASE
Spring Cloud Netflix 2.0.2.RELEASE
Spring Cloud Commons 2.0.2.RELEASE
Spring Cloud Contract 2.0.2.RELEASE
Spring Cloud Vault 2.0.2.RELEASE
Spring Cloud Openfeign 2.0.2.RELEASE
Spring Cloud AWS 2.0.1.RELEASE
Spring Cloud Cloud Foundry 2.0.1.RELEASE
Spring Cloud Security 2.0.1.RELEASE

其他詳細更新內容請檢視釋出公告,主要是各模組的 bug 修復。

GA: General Availability,正式釋出的版本,官方推薦使用此版本。在國外都是用GA來說明release版本的。
RELEASE: 正式版,等價於GA
SNAPSHOT: 快照版,可以穩定使用,且仍在繼續改進版本。
PRE: 預覽版,內部測試版. 主要是給開發人員和測試人員測試和找BUG用的,不建議使用;

模組介紹

模組 功能
Spring Cloud Netflix 與各種Netflix OSS元件整合(Eureka,Hystrix,Zuul,Archaius等)。
Spring Cloud Eureka 服務發現和註冊中心,統一管理服務
Spring Cloud Ribbon 客戶端RestTemplate負載均衡元件
Spring Cloud Feign 宣告式服務呼叫,簡化RestTemplate使用
Spring Cloud Hystrix 斷路容錯保護元件,實現優雅降級
Spring Cloud Hystrix Dashboard 監控儀表盤元件,監測節點和叢集的請求
Spring Cloud Zuul 閘道器服務,對映服務請求路徑
Spring Cloud Config 分散式配置中心,統一管理所有專案配置
Spring Cloud Bus 訊息匯流排,批量重新整理服務配置