refactor: make raw archive store optional

This commit is contained in:
lingniu
2026-07-01 07:42:16 +08:00
parent ba4bb51a07
commit 51b1dd4174
4 changed files with 29 additions and 1 deletions

View File

@@ -90,3 +90,12 @@
2. vehicle-state-service 仅保留在 `optional-latest-state` profile需要 Redis 最新状态查询能力时显式构建。
3. 默认优化和验证优先覆盖活跃接入、TDengine 历史和 MySQL 指标链路。
- **Consequences**: 默认构建和部署边界继续收窄;最新状态能力保持源码可用,但其测试需要通过 `-Poptional-latest-state` 显式运行。
## ADR-014 raw-archive-store 原型实现Optional only
- **Status**: Accepted
- **Context**: 默认生产 raw bytes 写入由 `sink-archive` 负责,历史查询通过 TDengine `raw_frames``archive://...` 引用追溯;`raw-archive-store` 当前只是独立读写接口和本地实现原型,没有默认 app 或 service 依赖。
- **Decision**:
1. `raw-archive-store` 不进入默认 Maven reactor。
2. raw-archive-store 仅保留在 `optional-raw-archive-store` profile需要验证本地读写原型时显式构建。
3. 默认生产链路继续以 `sink-archive`、Kafka raw topic、TDengine raw_frames 为准。
- **Consequences**: 默认构建少一个未部署模块;本地 raw archive 原型仍可通过 `-Poptional-raw-archive-store` 保留和验证。