编程开源技术交流,分享技术与知识

网站首页 > 开源技术 正文

微服务架构的主流技术栈SpringCloud简介

wxchong 2024-07-08 01:23:17 开源技术 55 ℃ 0 评论

技术/杨33


一、什么是微服务架构?

  • 微服务是一种架构模式,它提倡将单一应用程序划分成一组小的服务,服务之间互相协调,互相配合。
  • 每个服务运行在其独立的进程中,服务与服务间采用轻量级的通信机制(通常是基于HTTP协议的RESTful API)互相协调。
  • 根据具体业务划分每个服务,并且能够被独立的部署到生产环境。
  • 根据业务上下文,合理选择不同的开发语言、开发工具对服务进行构建。

SpringCloud是分布式微服务架构的一站式解决方案,是微服务开发的主流栈。包含多种微服务架构落地技术,如图:

二、SpringCloud和SpringBoot的版本选择很重要

由SpringCloud决定SpringBoot的版本。

可以访问这个地址:https://start.spring.io/actuator/info,查看版本的范围。

比如:"Hoxton.SR3": "Spring Boot >=2.2.0.M4 and <2.3.0.BUILD-SNAPSHOT"

就是:SpringCloud的版本Hoxton.SR3对应的SpringBoot版本必须在大于等于2.2.0小于2.3.0之间。

"spring-cloud": {
			"Finchley.M2": "Spring Boot >=2.0.0.M3 and <2.0.0.M5",
			"Finchley.M3": "Spring Boot >=2.0.0.M5 and <=2.0.0.M5",
			"Finchley.M4": "Spring Boot >=2.0.0.M6 and <=2.0.0.M6",
			"Finchley.M5": "Spring Boot >=2.0.0.M7 and <=2.0.0.M7",
			"Finchley.M6": "Spring Boot >=2.0.0.RC1 and <=2.0.0.RC1",
			"Finchley.M7": "Spring Boot >=2.0.0.RC2 and <=2.0.0.RC2",
			"Finchley.M9": "Spring Boot >=2.0.0.RELEASE and <=2.0.0.RELEASE",
			"Finchley.RC1": "Spring Boot >=2.0.1.RELEASE and <2.0.2.RELEASE",
			"Finchley.RC2": "Spring Boot >=2.0.2.RELEASE and <2.0.3.RELEASE",
			"Finchley.SR4": "Spring Boot >=2.0.3.RELEASE and <2.0.999.BUILD-SNAPSHOT",
			"Finchley.BUILD-SNAPSHOT": "Spring Boot >=2.0.999.BUILD-SNAPSHOT and <2.1.0.M3",
			"Greenwich.M1": "Spring Boot >=2.1.0.M3 and <2.1.0.RELEASE",
			"Greenwich.SR5": "Spring Boot >=2.1.0.RELEASE and <2.1.14.BUILD-SNAPSHOT",
			"Greenwich.BUILD-SNAPSHOT": "Spring Boot >=2.1.14.BUILD-SNAPSHOT and <2.2.0.M4",
			"Hoxton.SR3": "Spring Boot >=2.2.0.M4 and <2.3.0.BUILD-SNAPSHOT",
			"Hoxton.BUILD-SNAPSHOT": "Spring Boot >=2.3.0.BUILD-SNAPSHOT"
}

还有一种方式可以选择具体的SpringBoot版本:

  • 打开SpringCloud官网:https://spring.io/projects/spring-cloud#learn
  • 打开对应的版本后面Reference Doc菜单,就可以看到当前SpringCloud版本推荐支持的SpringBoot版本。

三、SpringCloud的中文指导文档

网址:https://www.bookstack.cn/read/spring-cloud-docs/docs-index.md

四、SpringCloud中的各组件使用指导网站

网址:https://www.springcloud.cc/

最权威的还是官网。



作者:杨33,北京互联网公司在职Java开发,专注分享写作干货。欢迎关注我,期待你的点赞评论。

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表