Spring Cloud Greenwich 版本已釋出
點選上方 “ 方誌朋 ”, 選擇“置頂或者星標”
你的關注意義重大!
就在1月23日,spring的官方部落格釋出了Spring Cloud Greenwich版本正式發版的訊息,Greenwich版本目前已經上了Maven的中央倉庫,現在來看看Greenwich有哪些變化。
End of Life (EOL) 提醒
Edgware版本將於2019年8月1日達到EOL狀態。您可以在此處閱讀正式公告。
Spring Cloud Finchley釋出系列目前是一個主要版本,並且與Spring Boot 2.0.x版本相關聯。 因此,當Spring Boot 2.0.x版本分支標記為EOL時,Spring Cloud Finchley版本系列將達到EOL狀態。
Spring Cloud Greenwich版本系列被認為是次要版本,並將繼續支援Spring Boot 2.x版本分支。
Greenwich有哪些新變化
Spring Cloud所有的專案都進行了更新,以實現Java 11的相容性。 並且Greenwich 版本有兩個新專案,Spring Cloud GCP(提供與Google Cloud Platform的整合)和Spring Cloud Kubernetes(提供與Kubernetes的整合)。
Spring Cloud Netflix專案進入維護模式
最近,Netflix宣佈Hystrix正在進入維護模式(不再新增新功能,只修復bug)。 自2016年以來,Ribbon已處於類似狀態。雖然Hystrix和Ribbon現在處於維護模式,但它們仍然在Netflix上大規模部署。
Hystrix Dashboard和Turbine已被Atlas取代。以下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或併發限制模組。
替代元件
不過不用慌張,雖然netflix絕大部分元件已經進入維護模式,但是Spring Cloud團隊開發了一些新的元件去取代這些元件。
當前元件 | 可取代的元件 |
---|---|
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 |
下面來看一下Greenwich版本的主要變化。
Spring Cloud Sleuth
-
更新到了最新的Brave庫。
-
WebFlux和Reactor整合的效能改進。
-
增加了GRPC元件
-
增加了對多個span reporter 支援。
-
增加了限速取樣器的支援。
Spring Cloud GCP
See the Google release announcement.
Spring Cloud Netflix
-
升級了Ribbon and Eureka 的版本
-
為新的ServiceInstance.instanceId欄位添加了支援。
Spring Cloud Consul
-
為新的ServiceInstance.instanceId欄位添加了支援。
Spring Cloud Gateway
-
添加了重寫響應頭過濾器。
-
在各自的路由predict中為多個路徑和主機添加了支援,並自定義在某些情況下返回的HTTP狀態程式碼。
Spring Cloud Kubernetes
-
你現在可以將ServiceInstance元資料配置為來自Kubernetes Labels物件、Annotations物件和Ports物件。
-
在啟動期間使用KubernetesDiscoveryClient進行了增強。
-
添加了一個模組來檢測Istio的存在。
Spring Cloud Security
添加了Spring Cloud Gateway 的一個過濾器去支援 OAuth2。具體可參考這個案例。https://github.com/spring-cloud-samples/sample-gateway-oauth2login
Spring Cloud Config
添加了EnvironmentRepository以支援CredHub後端。
Spring Cloud OpenFeign
-
支援了@QueryMap註解
-
升級到了OpenFeign版本為10.1.0.
其他升級的元件比如Spring Cloud Commons、Spring Cloud 、VaultSpring Cloud Contract、Spring Cloud Task、Spring Cloud Zookeeper、Spring Cloud Stream、Spring Cloud Function見原文:https://spring.io/blog/2019/01/23/spring-cloud-greenwich-release-is-now-available
以下模組作為Greenwich.RELEASE版本進行了更新:
模組 | 版本 |
---|---|
Spring Cloud Sleuth | 2.1.0.RELEASE (issues) |
Spring Cloud Gcp | 1.1.0.RELEASE (issues) |
Spring Cloud Build | 2.1.2.RELEASE |
Spring Cloud Netflix | 2.1.0.RELEASE (issues) |
Spring Cloud Consul | 2.1.0.RELEASE |
Spring Cloud Gateway | 2.1.0.RELEASE (issues) |
Spring Cloud | Greenwich.RELEASE |
Spring Cloud Function | 2.0.0.RELEASE (issues) |
Spring Cloud Stream | Fishtown.RELEASE |
Spring Cloud Zookeeper | 2.1.0.RELEASE |
Spring Cloud Cloudfoundry | 2.1.0.RELEASE |
Spring Cloud Aws | 2.1.0.RELEASE |
Spring Cloud Task | 2.1.0.RELEASE |
Spring Cloud Kubernetes | 1.0.0.RELEASE (issues) |
Spring Cloud Contract | 2.1.0.RELEASE (issues) |
Spring Cloud Release | Greenwich.RELEASE |
Spring Cloud Security | 2.1.0.RELEASE |
Spring Cloud Starter | Greenwich.RELEASE |
Spring Cloud Bus | 2.1.0.RELEASE (issues) |
Spring Cloud Config | 2.1.0.RELEASE (issues) |
Spring Cloud Vault | 2.1.0.RELEASE (issues) |
Spring Cloud Openfeign | 2.1.0.RELEASE (issues) |
Spring Cloud Commons | 2.1.0.RELEASE |
Spring Cloud Dependencies | 2.1.2.RELEASE |
Spring Cloud Finchely版本釋出才半年多,Greenwich版本就釋出了,預計2019年7月將會發布H版本了,有得學了,大家加油。
注:本文部分參考spring官方部落格https://spring.io/blog/2019/01/23/spring-cloud-greenwich-release-is-now-available
-更多文章-
-關注我-
看完了,幫我點個“好看”鴨
點鴨點鴨
↓↓↓↓