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 技术文章,都是干货。

相关文章
相关标签/搜索