Persist CultNet replica cursors

This commit is contained in:
Meta Vens 2026-05-19 18:19:09 +01:00
commit ff0436b529
6 changed files with 240 additions and 13 deletions

View file

@ -143,7 +143,10 @@ catch-up. Replicas apply those committed entries through
sequence gaps, and treats replayed entries as already applied.
`CultNetShardReplicator` can then pull non-primary shard logs from advertised
primary endpoints, using `CultNetSchemaShardLogFetcher` for the schema-v0
transport path.
transport path. Replica cursors can be stored through
`ICultNetShardReplicaCursorStore`; `CultNetFileShardReplicaCursorStore` keeps
those cursors in one local MessagePack file so replicas can resume after a
restart.
The first coherent shard policy is primary ownership. Each shard has one
authoritative writer at a time. Clients may connect to any node; a non-owner