refactor: embed mochi mqtt broker

This commit is contained in:
2026-08-03 14:19:28 +08:00
parent fefdba470a
commit 5edca1524f
13 changed files with 148 additions and 69 deletions

View File

@@ -7,6 +7,6 @@
| `api` | Gin HTTP API / BFF、同步事务、JWT 鉴权与统一响应 |
| `worker` | Outbox 投递、超时扫描与可重试异步任务 |
| `iot-client` | 管理系统/App 的设备上下行 HTTP 边界、幂等受理与状态查询 |
| `iot-server` | 外部 MQTT Broker 会话、厂商二进制协议、遥测、命令与回执 |
| `iot-server` | 内嵌 Mochi MQTT Broker、厂商二进制协议、遥测、命令与回执 |
四个进程沿用统一的工程机制API 是命令、Outbox 和上行报文的数据库事实主责Worker 负责投递IoT Client 负责系统接口IoT Server 负责设备协议。