Add CultMesh peer exchange catalogs
This commit is contained in:
parent
dfa7db607a
commit
c612eb4307
10 changed files with 718 additions and 1 deletions
|
|
@ -11,6 +11,8 @@ Namespace: `GameCult.Mesh`
|
|||
- `CultMesh.CreateNodeAsync(...)`
|
||||
- `CultMesh.StartNodeAsync(...)`
|
||||
- `CultMesh.CreateVerseCatalog()`
|
||||
- `CultMesh.CreatePeerCatalog()`
|
||||
- `CultMesh.CreateVerseDiscoveryClient(...)`
|
||||
- `CultMesh.CreateClient(...)`
|
||||
- `CultMesh.ConnectClient(...)`
|
||||
|
||||
|
|
@ -48,6 +50,19 @@ responses to a node. The wire contracts are
|
|||
Consumers can apply a response directly with
|
||||
`CultMeshVerseCatalog.Upsert(CultMeshVerseCatalogResponseMessage)`.
|
||||
|
||||
### Peer Exchange
|
||||
|
||||
`CultMeshPeerCatalog` is the local reactive catalog for peer cards.
|
||||
`CultMeshPeerCard` describes a candidate peer endpoint for one Verse with
|
||||
roles, shard hints, optional region, optional authority lease id, expiry, and
|
||||
signature.
|
||||
|
||||
`CultMesh.ServePeerExchange(node, catalog)` attaches schema-v0 peer exchange
|
||||
responses to a node. The wire contracts are
|
||||
`cultmesh.peer_exchange_request.v0` and `cultmesh.peer_exchange_response.v0`.
|
||||
Peer cards are discovery hints; authority still requires a valid lease or
|
||||
signature for the target Verse.
|
||||
|
||||
### Shard Authority
|
||||
|
||||
Each shard has one primary writer for now. Non-primary writes are rejected or
|
||||
|
|
|
|||
|
|
@ -56,3 +56,11 @@ Authority is a Verse-level policy, not a transport accident.
|
|||
static config, cloud discovery, peer gossip, or mod portals. It does not care
|
||||
where the descriptor came from. That keeps discovery pluggable while the Verse
|
||||
model stays stable.
|
||||
|
||||
Peer exchange is the torrent-shaped layer under Verse discovery. A Verse
|
||||
catalog says which graph exists; a peer catalog says which nodes can currently
|
||||
serve or observe parts of that graph. Peer cards can advertise discovery,
|
||||
primary shard, replica, read replica, and simulation observer roles, but those
|
||||
cards do not grant authority by themselves. Public operator Verses should treat
|
||||
authority lease ids and signatures as mandatory before accepting committed
|
||||
state from a peer.
|
||||
|
|
|
|||
Loading…
Reference in a new issue