docs(acm2-75): 按需求与架构收口契约和规范
补齐接口契约的入站、Redis 与出站边界,规范对齐已定语义并作废过期条款;Kafka 生产端约束编号改为 D2。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+5
-5
@@ -44,7 +44,7 @@
|
||||
| `msgx.identity.include-day-boundary` | `false` | 安全默认 | 身份是否加日期边界;影响去重语义,不能当调优项切换(`Q11`) |
|
||||
| `msgx.health.backlog-cache-ttl-ms` | `30000` | 假定 | 积压快照缓存窗口;`0` = 不缓存;`/health` 与 `/metrics` 共用同一快照 |
|
||||
| `msgx.history.history-store-enabled` | `false` | 安全默认 | 历史存储门控;关闭时历史清理删 0 条 |
|
||||
| `msgx.history.cancelled-hours` | `48` | 假定 | 历史清理的取消态判据窗口 |
|
||||
| `msgx.history.cancelled-hours` | `1` | 假定 | 历史清理的取消态判据窗口 |
|
||||
| `msgx.history.terminal-hours` | `48` | 假定 | 历史清理的终态判据窗口 |
|
||||
| `msgx.history.deleted-hours` | `48` | 假定 | 历史清理的已删除判据窗口 |
|
||||
| `msgx.history.idle-hours` | `168` | 假定 | 历史清理的静默期判据 |
|
||||
@@ -61,9 +61,9 @@
|
||||
| `mailbox.shared-mysql.url` | 环境变量 | 安全 | 零入库,见 `.env.example`;同组 `username` / `password` |
|
||||
| `datasources.default.connection-timeout` | `5000` | 假定 | 自有 PG 池(毫秒数,非 Duration 字面量);同组 `validation-timeout=3000`、`idle-timeout=300000`、`max-lifetime=1800000` |
|
||||
| `datasources.default.data-source-properties.connectTimeout` | `3` | 假定 | 驱动级连接超时(秒);同组 `socketTimeout=30` |
|
||||
| `kafka.producers.default.acks` | `all` | 契约(`D3`) | 允许环境变量覆盖 |
|
||||
| `kafka.producers.default.enable-idempotence` | `true` | 契约(`D3`) | 允许环境变量覆盖 |
|
||||
| `kafka.producers.default.max-in-flight-requests-per-connection` | `1` | 契约(`D3`) | 启动自检钉住三项联合满足 `D3`;允许环境变量覆盖 |
|
||||
| `kafka.producers.default.acks` | `all` | 契约(`D2`) | 允许环境变量覆盖 |
|
||||
| `kafka.producers.default.enable-idempotence` | `true` | 契约(`D2`) | 允许环境变量覆盖 |
|
||||
| `kafka.producers.default.max-in-flight-requests-per-connection` | `1` | 契约(`D2`) | 启动自检钉住三项联合满足 `D2`;允许环境变量覆盖 |
|
||||
|
||||
环境变量清单以 `.env.example` 为准。
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
| 回填与投递 | `processing/BackfillService.kt`、`delivery/Dispatcher.kt`、`infra/kafka/KafkaDeliveryPort.kt` |
|
||||
| 维护作业 | `jobs/JobRunner.kt`、`jobs/HistorySweepJob.kt`、`jobs/EventCleanupJob.kt`、`infra/persistence/SnapshotLogPurge.kt` |
|
||||
| 持久化与恢复 | `infra/persistence/`(含 `jdbc/JdbcPgRepositories.kt`、`jdbc/JdbcCminmsgInboxRepository.kt`)、`infra/retry/`(`ProcFailure` / `ReplayService` / `FailureScheduler`) |
|
||||
| 启停与配置 | `PipelineLifecycle.kt`、`config/PipelineProps.kt`、`config/HistoryProps.kt`、`config/OperationDayProps.kt`(含运营日时区启动自检)、`config/MailboxProps.kt`、`config/KafkaD3Check.kt`(`D3` 三联合启动自检) |
|
||||
| 启停与配置 | `PipelineLifecycle.kt`、`config/PipelineProps.kt`、`config/HistoryProps.kt`、`config/OperationDayProps.kt`(含运营日时区启动自检)、`config/MailboxProps.kt`、`config/KafkaD3Check.kt`(`D2` 三联合启动自检) |
|
||||
| 指标与健康 | `infra/metrics/PipelineMetrics.kt`、`infra/metrics/JobActivity.kt`、`infra/health/BacklogSnapshotProvider.kt`、`infra/health/JobRunnerHealthIndicator.kt` |
|
||||
| 迁移 | `src/main/resources/db/migration/`(单基线 `V1__flight_state_baseline.sql`;`oracle11g/` 为占位) |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user