agent-substrate / agent-substrate/substrate
Make store publish worker-watch updates locally
未关闭
area/api-machinery
kind/feature
- 主要语言
- Go
- 星标
- 1.8k
- 派生
- 316
- 平均合并
- 2 天 43 分钟
- 30 天内合并 PR
- 287
描述
When a `Worker` resource is created / updated / deleted we publish a `WorkerEvent` which has the operation type and the serialized resource. All replicas, including the one that performed the update consume the events and reply them into the worker cache the same way, from the DB. There is a potential performance optimization by making the replica that performed the update publish the notification locally (and faster).
The event from the DB will arrive later and be ignored (because the version is not newer). This way the staleness of the workercache on each replica gets reduced.
贡献指南
评估
这个 Issue 还没有评估数据。