Spring Cloud
微服务治理的框架
RPC->gRPC(Google remote procedure call)
RPC 基于 TCP 长连接,消耗大
Zookeeper 基于 tcp 长连接 小型分布式
Eureka 中型 Rest基于 http
Nacos 大型
服务降级
服务网关
- GateWay: 整理 API 名称
Payment restTamplate.getForObject
ResponseEntity
entity.getStatusCode
entity.getBody
Eureka
unkown: eureka 自身
- Golang:并发
- nodejs:轮询+非阻塞
GateWay
- 路由
- 断言 什么样的请求能不能过
-
Config
配置中心配置(bootstrap.yml)>服务配置(application.yml)
服务降级
漏桶算法(线程池) 阈值类型:线程数
-
Sentinel
流控模式:
直接
- 关联
- 链路
jmeter 压测