文章目录
- [1. nacos](#1. nacos)
- [2. Ribbon负载均衡](#2. Ribbon负载均衡)
- 3.链路追踪
- [4. Nginx限流和gateway限流](#4. Nginx限流和gateway限流)
- [5. 怎么解决分布式事务](#5. 怎么解决分布式事务)
- [6. 分布式服务的接口幂等如何保证](#6. 分布式服务的接口幂等如何保证)
- [7. 分布式任务调度XXL-Job](#7. 分布式任务调度XXL-Job)

1. nacos

2. Ribbon负载均衡


3.链路追踪


4. Nginx限流和gateway限流
Nginx限流:基于漏桶算法
- 控制速率:让请求以固定的速率处理请求
- 控制并发数:限制单个ip的连接数和并发连接的总数
网关限流:基于令牌桶算法实现,可以根据ip和路径进行限流

5. 怎么解决分布式事务
- seata框架(XA、AT、TCC)
- MQ

XA模式(CP)
AT模式(AP)
TCC模式(AP):
MQ:
6. 分布式服务的接口幂等如何保证

接口幂等:多次调用方法或者接口结果是一致的

7. 分布式任务调度XXL-Job