agent-substrate / agent-substrate/substrate

Make store publish worker-watch updates locally

Offen
#1,370 4 Kommentare 2 Reaktionen 1 zugewiesene Person Beansprucht von @BenTheElder Auf GitHub ansehen
area/api-machinery kind/feature
Vorherrschende Sprache
Go
Sterne
1.8k
Forks
316
Ø Merge
2 T. 43 Min.
Gemergte PRs (30 T.)
287

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.