Skip to content
预计 1 分钟右侧目录可快速定位

Database 与 Durable Storage(Harness Service Engineering) ​

围绕 Run/Node/Tool/Checkpoint/Event 持久化与 side-effect consistency 学数据库。

推荐阅读顺序 ​

1. Runtime 数据库怎样设计 Key 和 Index:Schema、Key 与 Index ​

回答:Run / Node / Tool 等 Runtime 数据怎样选择 primary / unique key 和 index,才能同时支持一致性与常用查询?

2. 数据库并发边界:Transaction、Isolation、Optimistic Concurrency 与 Pool ​

回答:Runtime 为什么不能把外部 LLM / Tool await 放进长数据库事务,连接池又如何约束并发?

3. Runtime 事实怎么落表:Run、Node Execution 与 Attempt Identity ​

回答:为什么 Run 当前状态、Node 逻辑状态和每次 execution attempt 不能全塞在一张记录里;怎样设计 identity/version 才能支持 retry、并发 claim、恢复和审计?

4. 哪些 Runtime 事实必须持久化:Tool、Checkpoint 与 Approval ​

回答:Tool attempt、Checkpoint 和 Approval 哪些字段必须持久化,才能在 crash 后准确恢复和审计?

5. 数据库提交和外部副作用如何衔接:Event Log、Outbox 与 Side-effect Consistency ​

回答:数据库 commit 与消息或外部副作用之间存在断点时,Event Log / Outbox 怎样建立 durable bridge?

6. 外部 Tool 不能回滚怎么办:Transactional Boundary 与 Compensation ​

回答:数据库事务无法覆盖远程 Tool 时,怎样用 operation identity、reconciliation 或 compensation 处理部分成功?

本模块学习边界 ​

  • 暂不展开:数据库内核实现与复杂 DBA 调优;Queue/Worker delivery 后移 W10

AI Engineering · Agent · Harness · Backend Systems