Spring Cloud Greenwich 正式發佈,Hystrix 即將壽終正寢。。

Spring Cloud Greenwich 正式版在 01/23/2019 這天正式發佈了,下面咱們來看下有哪些更新內容。spring

生命週期終止提醒

Spring Cloud Edgware

Edgware 版本將於 08/01/2019 正式退役,具體能夠參考官方宣佈:安全

spring.io/blog/2018/0…微信

Spring Cloud Finchley

Finchley 版本做爲 Spring Boot 2.0.x 的主要版本,Finchley 的生命週期也會由 Spring Boot 2.0.x 版本的終止而終止。微服務

Spring Cloud Greenwich

Greenwich 版本如今做爲一個次要版本,它後續將繼續支持 Spring Boot 2.x 的發佈支持。orm

分不清這些版本的區別和意義?能夠參考棧長以前寫的關於版本的文章: Spring Cloud 多版本怎麼選擇?cdn

Greenwich 重大更新

兼容JDK

這個最新版本的發佈最重要的一點是,全部的子項目都兼容 Java 11。blog

新項目

一、Spring Cloud GCP生命週期

提供對 Google Cloud Platform 的集成。開發

二、Spring Cloud Kubernetes部署

提供對 Kubernetes 的集成。

Spring Cloud Netflix 進入維護模式

最近,Netflix 宣佈 Netflix 進入維護模式:《Hystrix 中止開發。。。Spring Cloud 何去何從?》,Ribbon 自 2016 年以來也一直處於相似的狀態,儘管它們已經進入維護模式,但它們在 Netflix 內部已經大規則部署應用。

另外,Hystrix Dashboard 和 Turbine 已經被 Atlas 取代,這兩個項目最後一次的代碼提交分別是 2 年前和 4 年前了。Zuul 1 和 Archaius 1 也已經被後續的版本取代,再也不向後續版本兼容。

如下 Spring Cloud Netflix 模塊及相應啓動器將進入維護模式:

  • spring-cloud-netflix-archaius
  • spring-cloud-netflix-hystrix-contract
  • spring-cloud-netflix-hystrix-dashboard
  • spring-cloud-netflix-hystrix-stream
  • spring-cloud-netflix-hystrix
  • spring-cloud-netflix-ribbon
  • spring-cloud-netflix-turbine-stream
  • spring-cloud-netflix-turbine
  • spring-cloud-netflix-zuul

這些並不包括 Eureka 或者 concurrency-limits 模塊。

什麼是維護模式?

這些個項目進入維護模式後,Spring Cloud 團隊也不會往這些模塊添加新功能了,可是仍是會修復一些 bug 及安全漏洞,也會考慮和審查來自社區的小規模拉取請求。

Spring Cloud Greenwich 版本在這些維護模式的項目上至少會支持 1 年。

有什麼替換方案?

官方推薦瞭如下替代方案,也許在不久的未來,或者下一個大版本這些替代方案會成爲主流項目。

目前的 可替換
Hystrix Resilience4j
Hystrix Dashboard / Turbine Micrometer + Monitoring System
Ribbon Spring Cloud Loadbalancer
Zuul 1 Spring Cloud Gateway
Archaius 1 Spring Boot external config + Spring Cloud Config

這個版本除了以上重大更新,還有一些子項目的版本更新、問題修復等,這裏就不詳細分析了,你們有興趣的能夠去看官方發佈博文:

spring.io/blog/2019/0…

若是你也在使用 Spring Cloud 搭建微服務,能夠關注Java技術棧微信公衆號,在後臺回覆關鍵字:spring,棧長整理了一系列 boot/ cloud 技術文章,都是乾貨。

相關文章
相關標籤/搜索