一、概念解释
springboot 是快速开发微服务的一套框架
springcloud 是微服务架构的一套解决方案工具集(生态集)
springcloud alibaba 是开发微服务架构的一套工具集,中国开源,是springcloud的子项目
springcloud netflix 是开发微服务架构的一套工具集,国外开源,是springcloud的子项目
二、Spring Cloud Alibaba
2.1)什么是SpringCloud?
https://spring.io/projects/spring-cloud
spring cloud子项目孵化器地址:https://github.com/spring-cloud-incubator 孵化成功就变为 springcloud的子项目了。
SpringCloud是程序员用来开发我们微服务的一整套技术解决方案.包含如下 服务注册发现,服务容错降级,服务网关,服务调用,服务调用负载均衡,消息等.
2.2)什么是Spring cloud Alibaba
Spring cloud Alibaba是我们SpringCloud的一个子项目,是提供微服务开发的一站式 解决方案.包含微服务开发的必要组件。
2.2.1)基于SpringCloud 符合SpringCloud标准,是阿里的微服务的解决方案.
文档:https://github.com/alibaba/spring-cloud-alibaba/blob/master/README-zh.md
主要功能描述:
2.2.2)SpringCloud SpringCloudalibaba SpringBoot的生产版本选择
①:我们的SpringBoot版本 说明选择
②:Spring cloud的版本说明
第一代版本:Angle
第二代版本:Brixton
第三代版本:Camden
第四代版本:Edgware
第五代版本:Finchley
第六代版本:GreenWich
第七代版本:Hoxton(还在酝酿中,没正式版本)
这种发布的版本是 以伦敦地铁站发行地铁的站。 为什么我们的SpringCloud会以这种方式来发布版本,因为假如我们传统的 5.1.5release这种发布的而 SpringCloud会包含很多子项目的版本就会给人造成混 淆.
SNAPSHOT: 快照版本,随时可能修改
M: MileStone,M1表示第1个里程碑版本,一般同时标注PRE,表示预览版版。
RC 版本英文版名字叫Release Candidate(候选版本)一般标注PRE表示预览版
SR: Service Release,SR1表示第1个正式版本,一般同时标注GA:(GenerallyAvailable),表示 稳定版本。
比如还有一种RELEASE版本(正式版本) 比如 Greenwich版本顺序 Greenwich.release----->发现bug----->Greenwich.SR1------>发现bug----> Greenwich.SR2。 SpringCloud的发布计划 https://github.com/spring-cloud/spring-cloud-release/milestones
SpringCloud曾经发布的版本: https://github.com/spring-cloud/spring-cloud-release/releases
③:Springboot SpringCloud SpringCloudalibaba 的版本对应关系
https://github.com/alibaba/spring-cloudalibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E
④:生产版本选择
a:打死不用 非稳定版本/ end-of-life(不维护)版本
b:release版本先等等(等别人去探雷)
c:推荐 SR2以后的可以放心使用.