阅读时间:1 分钟
0 字
系统结构
运行组件
text
浏览器或客户端
│
├── HTTP / SSE / WebSocket
▼
可选 Gateway
│
▼
sca4d-server(可以运行多个实例)
├── PostgreSQL
├── Redis
├── RabbitMQ
└── MinIO 或本地文件目录sca4d-server 处理登录、权限、业务请求、数据库事务、消息、文件、通知和即时通信。sca4d-gateway 只负责转发请求和选择健康实例。sca4d-admin 调用主应用提供的 HTTP、SSE 和 WebSocket 接口。
HTTP 调用过程
text
Filter
→ 认证拦截器
→ Principal 选择
→ 权限和数据访问检查
→ Controller
→ Service
→ Repository
→ Mapper
→ PostgreSQL响应从 Service 返回业务对象,在 Controller 中转换为 View,再封装为 ApiResponse<T>。
