Spring Cloud:第一章:基本介绍
Spring Cloud中文网 Spring Cloud 是什么?
Spring Cloud 是一系列框架的有序集合,将市面上开发得比较好的模块集成进去,进行封装,从而减少了各模块的开发成本。
Spring Cloud 优缺点
基于注解,没有配置文件,解耦的 Spring Cloud 和 Dubbo 对比
Dubbo 只是实现了服务治理,而 Spring Cloud 实现了微服务架构的方方面面,服务治理只是其中的一个方面。Spring Cloud 基于 Spring Boot,基于http协议,Dubbo基于RPC协议。 SpringCloud分布式开发
通过spring cloud Eureka实现高可用的服务注册中心以及实现微服务的注册与发现;通过spring cloud ribbon或feign实现服务间负载均衡的接口调用,同时,为了分布式系统更为健壮,以避免服务调用使用spring cloud hystrix来进行包装,实现线程隔离并加入熔断机制,以避免在微服务架构中因个别服务出现异常而引起级联故障蔓延。 五大常用spring cloud子项目
服务发现——Netflix Eureka
客服端负载均衡——Netflix Ribbon
断路器——Netflix Hystrix
服务网关——Netflix Zuul
分布式配置——Spring Cloud Config 服务发现——Netflix Eureka
服务注册中心 :eureka-server
作用:服务注册中心提供服务注册功能
服务提供方:eureka-client
作用:注册服务到服务注册中心 客服端负载均衡——Netflix Ribbon
在Spring Cloud中,有两种服务调用方式,一种是Ribbon+RestTemplate,另一种是Feign。
当Ribbon与Eureka配合使用时,Ribbon可自动从Eureka Server获取服务提供者地址列表,并基于负载均衡算法,请求其中一个服务提供者实例。
更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/120382419
相关文章
- 防止内卷和被潜规则,Spring Cloud Alibaba微服务架构实战派(上下册)|35岁程序员那些事
- Spring 全家桶之 Spring Boot 2.6.4(八)- 嵌入式 Servlet 容器(Part B)
- Spring Cloud的架构[通俗易懂]
- SSM框架实现用户查询、注册、登录——IDEA整合Spring、Spring MVC、Mybatis 框架「建议收藏」
- 长文捋明白 Spring 事务!隔离性?传播性?一网打尽!
- Spring Cloud Bus
- Spring Boot几种定时任务的实现方式
- Spring Cloud:第一章:基本介绍
- 霸道!阿里最新版Spring Cloud Alibaba项目文档,竟将重要组件弃用
- Spring Boot 3.0.0 首个RC版本发布
- Spring Boot的数据源配置
- 配置Spring Cloud Feign(一)
- 使用Spring Cloud Feign调用RESTful API(一)
- Spring Cloud Gateway负载均衡-加权随机策略
- Spring Cloud Security监控示例-安全度量指标示例
- Spring Cloud Task 示例演示
- Spring Cloud Task查看任务状态
- Spring Cloud Task 高级特性Task Dependency示例
- Spring Cloud Data Flow 的作用和使用场景
- Spring容器中Bean的作用域详解编程语言
- Spring Cloud 入门教程(四): 分布式环境下自动发现配置服务详解编程语言