agent-substrate / agent-substrate/substrate

Make store publish worker-watch updates locally

Abierto
#1,370 4 comentarios 2 reacciones 1 asignado Reclamado por @BenTheElder Ver en GitHub
area/api-machinery kind/feature
Lenguaje dominante
Go
Estrellas
1.8k
Forks
316
Merge medio
2 d 43 min
PR fusionados (30 d)
287

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.