更新配置
This commit is contained in:
@@ -68,6 +68,6 @@ MenuList.vue统一用URL传id
|
||||
|
||||
## 重要信息
|
||||
- 数据库: 10.1.1.122:3306
|
||||
- 微服务端口: gateway:9000, auth:9001, admin:9002
|
||||
- 微服务端口: gateway:32000, auth:32001, admin:32002
|
||||
- 前端构建: `npm run build:prod` (跳过vue-tsc类型检查)
|
||||
- Node版本: 服务器Node 18,Vite 5.4兼容
|
||||
|
||||
@@ -31,7 +31,7 @@ metadata:
|
||||
|
||||
## 重要信息
|
||||
- Redis 前缀机制详情见 [[session-20260620-1]] 的 "Redis Key 加统一前缀 GATEWAY:" 章节
|
||||
- Auth 服务(9001)、Admin 服务(9002)、Gateway(9000) 三个服务共享同一个 Redis 实例
|
||||
- Auth 服务(32001)、Admin 服务(32002)、Gateway(32000) 三个服务共享同一个 Redis 实例
|
||||
- 所有 Redis key 操作都必须通过 `RedisUtil.key()` 方法,不能直接拼字符串
|
||||
|
||||
## 待处理
|
||||
|
||||
@@ -16,7 +16,7 @@ metadata:
|
||||
## 关键操作
|
||||
|
||||
### /zgapi/v1/auth/system/list 性能排查
|
||||
- **做了什么**: 完整追踪请求链路:Nginx → Gateway(9000) → TokenAuthFilter → RateLimitFilter → HeaderInjectFilter → ApiPermissionFilter → GatewayController → [HTTP转发] → Auth(9001) → DB/Redis
|
||||
- **做了什么**: 完整追踪请求链路:Nginx → Gateway(32000) → TokenAuthFilter → RateLimitFilter → HeaderInjectFilter → ApiPermissionFilter → GatewayController → [HTTP转发] → Auth(32001) → DB/Redis
|
||||
- **发现的浪费**:
|
||||
1. JWT 签名验证执行了 3 次(TokenAuthFilter + RateLimitFilter + AuthServiceImpl)
|
||||
2. 同一个 Redis key 被查询了 4 次(TokenAuthFilter GET+GETEXPIRE + AuthServiceImpl GET+GETEXPIRE)
|
||||
|
||||
Reference in New Issue
Block a user