项目中使用gateway做路由
所以我学习了一下spring cloud gateway
gateway是一个进行路由的框架
spring-cloud-starter-gateway
搭配hystrix做断路器, 进行雪崩处理
搭配ribbon做负载均衡
搭配redis做限流
搭配actuator做监控
搭配nacos做服务发现
我们现在的项目是 jdk8, springbootHoxton.SR12, gateway3.1.3, hystrix2.2.9.RELEASE, ribbon2.2.9.RELEASE,
nacos2.2.5.RELEASE + openfeign 2.2.9.RELEASE
- hystrix可以用sentinel来替代
- ribbon可以用Spring Cloud LoadBalancer来替代
未来如果是我负责架构
JDK 8 + Spring Boot 2.7.18 + Spring Cloud 2021.0.9 + Spring Cloud Gateway 3.1.9
- Nacos 2.3.0 + Spring Cloud LoadBalancer 3.1.9 + Spring Cloud Sentinel 2021.0.1.0
- OpenFeign 3.1.9
1 |
|
gateway
1 |
|
近期有旧项目用ai, ai最低支持jdk17
JDK 17
Spring Boot 3.4.5
Spring Cloud 2023.0.5
Spring AI 1.0.0-M7
Nacos 2.3.0
