赞
踩
Spring Cloud 是构建在 Spring Boot 基础之上,用于快速构建分布式系统的通用模式的工具集。或者说,换成大家更为熟知的,用于构建微服务的技术栈。
而后,不同厂商结合自身的中间件,提供自身的SpringCloud套件,例如:
当然SpringCloud还是提供了自身的一些组件的:
下面我们把 Spring Cloud 官方、Netflix、Alibaba 三者整理成如下表格:
SpringCloud 官方 | Netflix | Alibaba | |
---|---|---|---|
配置中心 | Spring Cloud Config、Spring Cloud Vault | Archaius | Nacos |
注册中心 | Eureka | Nacos | |
服务调用 | Spring Cloud OpenFeign、RestTemlete | Dubbo | |
负载均衡 | Spring Cloud Load Balancer | Ribbon | Dubbo |
服务容错 | Hystrix | Sentinel | |
API网关 | Spring Cloud Gateway | Zuul | |
消息驱动 | Spring Cloud Stream RabbiltMQ、Spring Cloud Stream Kafka | Spring Cloud Stream RecketMQ | |
事件总线 | Spring Cloud Bus | Spring Cloud Bus RecketMQ | |
链路跟踪 | Spring Cloud Sleuth | ||
分布式事物 | Seate | ||
分布式调度 | SchedulerX |
Spring Cloud Alibaba 套件,阿里开源组件、阿里云商业组件整合进 Spring Cloud 体系当中,同时对 Spring Cloud Gateway、OpenFeign、Ribbon 等等进行集成。
主要功能如下:
Spring Boot 专注于快速方便的开发单个个体微服务。
Spring Cloud 是关注全局的微服务协调整理治理框架以及一整套的落地解决方案,它将 Spring Boot 开发的一个个单体微服务整合并管理起来,为各个微服务之间提供:配置管理,服务发现,断路器,路由,微代理,事件总线等的集成服务。
Spring Boot 可以离开 Spring Cloud 独立使用,但是 Spring Cloud 离不开 Spring Boot ,属于依赖的关系。
查看文献:什么是微服务?
优点
缺点
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。