refactor: make latest state optional

This commit is contained in:
lingniu
2026-07-01 07:37:50 +08:00
parent 0987bb4718
commit ba4bb51a07
7 changed files with 39 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ lingniu-vehicle-ingest/
│ │ └── event-file-store/ 可选兼容索引(旧 Parquet/DuckDB 路径)
│ ├── services/
│ │ ├── event-history-service/ Kafka 全字段事件消费 + 历史查询/导出
│ │ ├── vehicle-state-service/ Kafka 全字段事件消费 + Redis 热状态查询
│ │ ├── vehicle-state-service/ Kafka 全字段事件消费 + Redis 热状态查询optional-latest-state profile
│ │ └── vehicle-stat-service/ Kafka 全字段事件消费 + 可配置日统计
│ └── apps/
│ ├── command-gateway/ HTTP → 设备下行命令808 位置/参数/属性/控制/区域删除/报警确认 + 1078 音视频控制)
@@ -80,6 +80,8 @@ mvn -pl :jt808-ingest-app -am spring-boot:run
JSATL12 附件上传不在默认 Maven reactor 中;需要时使用 `-Poptional-attachments` 构建。
Redis 最新状态查询不在默认 Maven reactor 中;需要时使用 `-Poptional-latest-state` 构建 `vehicle-state-service`
## 迁移说明
本项目是 `lingniu-vehicle-data-reception` 的 v2 重构,采用 strangler fig 渐进式迁移,旧项目保留只读参考。迁移路径与决策参见 `../REFRACTOR_PLAN.md`