Files
XH-XunKe/docs/ARCHITECTURE.md
T

15 lines
852 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 架构
教师浏览器分别采集摄像头和麦克风,经 WebRTC 推到 LiveKit 房间。房间名是 `xh-{学校}-{班级}-{会话}`。后端在确认音视频发布后把会话标为 LIVE,家长只拿订阅令牌。录像由 LiveKit Egress 直接写入 MinIO,后端只保存元数据和短时播放地址。
## 运行单元
- `frontend`:Vue 3、Vite、Element Plus、LiveKit Client。
- `backend`:Spring Boot 3.5.16。Controller 只接收请求,规则在 Service。
- PostgreSQL:用户、学校、授权、课程、直播和录像元数据。
- Redis:验证码、刷新令牌、限流、设置版本和观看心跳。
- LiveKit / Egress:实时分发和合成录像。
- MinIO:私有录像文件。
Java 工具链是 Docker 镜像 `maven:3.9.11-eclipse-temurin-21` 和 `eclipse-temurin:21-jre`,不进入宿主机 PATH。