agent-substrate / agent-substrate/substrate

Make store publish worker-watch updates locally

Đang mở
#1,370 4 bình luận 2 reaction 1 người được giao Được @BenTheElder nhận Xem trên GitHub
area/api-machinery kind/feature
Ngôn ngữ chính
Go
Star
1.8k
Fork
316
Merge trung bình
2 ngày 43 phút
Pull request đã merge (30 ngày)
287

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.