spring cloud理论入门

Spring Cloud简介

cloud H 官方文档
boot 官方文档

  1. spring cloud简介
    Spring Cloud = 分布式微服务架构的一站式解决方案,是多种微服务结构落地技术的几何体,俗称微服务全家桶

  2. spring boot和spring cloud版本选型
    spring boot2.x + spring cloud H版

spring boot

spring cloud

版本匹配约束

更详细的版本对应查看方法:actuator

2020.10 版本选定:

  • cloud: Hoxton.SR1
  • boot 2.2.2.RELEASE
  • cloud alibaba 2.1.0.RELEASE
  • Java Java8
  • Mavan 3.5以上
  • MySQL 5.7及以上

Spring Cloud组件更新说明

  1. 服务注册中心
  • Eureka 停更
  • Zookeeper 可以搭配Dubbo
  • Consul 不推荐使用
  • Nacos alibaba的 替换Eureka
  1. 服务调用
  • Ribbon
  • LoadBanlancer
  1. 服务调用2
  • feign
  • OpenFeign spring cloud提供
  1. 服务降级
  • Hystrix 停更
  • resilience4j 官网推荐
  • Sentinel Spring cloud alibaba提供
  1. 服务网关
  • Zuul 停更
  • Zuul2 !!
  • gateway Spring官网
  1. 服务配置
  • Config ×
  • Nacos alibaba
  1. 服务总线
  • Bus ×
  • Nacos
原文地址:https://www.cnblogs.com/zhuxiang1633/p/13805919.html