Skip to content

WIP: add Redis-backed CrossReplicaStore plugin#2

Draft
Lucas-Fernandes-Martins wants to merge 11 commits into
lfm/state-store-pluginfrom
lfm/redis-store-plugin
Draft

WIP: add Redis-backed CrossReplicaStore plugin#2
Lucas-Fernandes-Martins wants to merge 11 commits into
lfm/state-store-pluginfrom
lfm/redis-store-plugin

Conversation

@Lucas-Fernandes-Martins

@Lucas-Fernandes-Martins Lucas-Fernandes-Martins commented Jul 23, 2026

Copy link
Copy Markdown

What type of PR is this?
feature

What this PR does / why we need it:

WIP - This PR implements a Redis based CrossReplicaStore, as a concrete implementation example of what's proposed here.

This is not meant for production for now, it is simply meant to show how one can use the proposed CrossReplicaStore interface to implement different cross-replica syncing mechanisms.

Release note (write NONE if no user-facing change):

NONE

Signed-off-by: Lucas Fernandes Martins <lucas.fernandesmartins@macbook-pro-lucasmartins.cheetah-koi.ts.net>
Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
Signed-off-by: Lucas Fernandes Martins <lucas.fernandesmartins@macbook-pro-lucasmartins.cheetah-koi.ts.net>
Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
Signed-off-by: Lucas Fernandes Martins <lucas.fernandesmartins@macbook-pro-lucasmartins.cheetah-koi.ts.net>
Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
The Get method now accepts a caller-supplied aggregate function so
store implementations can fold per-replica values without hardcoding
aggregation logic.

Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
Implement a Redis-backed CrossReplicaStore that enables cross-replica
state aggregation. Each EPP replica writes its local state to Redis
keyed by {stateKey}:{endpointID}:{replicaID}, and reads aggregate
across all replicas via KEYS scan + caller-supplied aggregation
function.

Signed-off-by: Lucas-Fernandes-Martins <lucas.fernandesmartins@mistral.ai>
Signed-off-by: Lucas-Fernandes-Martins <lucasfmartins16@gmail.com>
@Lucas-Fernandes-Martins
Lucas-Fernandes-Martins marked this pull request as draft July 23, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant