Strictly necessary cookies keep this site working. Videos, maps and fonts from other services load only with your permission, and we never sell or share your personal information.
The synchronisation traffic between two federation peers proposed by draft OIP-0004 (federation bindings, authority leases and partition behaviour), as answered by the reference federation service (reference/rust/obsp-federation, module http): each exchange is an HTTP POST of a JSON body to /federation/v0.1/<operation> with a JSON answer, or an RFC 9457 problem document on refusal. The caller names itself in the Obsp-Peer header and may send a W3C traceparent header. Only the operations that move records, events and leases between peers are described here; the binding exchange (binding/propose, binding/install), lease votes and ping are request and answer steps of the same service.
Status DRAFT: every contract used is a draft of OIP-0004 and the 0.5 integration series; the bodies are summarised inline because the draft schemas (federation-binding, authority-lease, federation-event) are not in this tree. The reference service has no transport security of its own; FED-3 asks for https endpoints. It names no hosted peer.
Field
Value
Document
schemas/asyncapi/obsp-federation.asyncapi.yaml
Format
AsyncAPI 3.0.0
Version
0.1.0
Servers
Server
Host
Protocol
Version
Description
peer
{peerHost}
https
A federation peer. Mutual TLS in front of the service (FED-3); the reference service listens on loopback.
Channels
Channel
Address
Messages
write
federation/v0.1/write
WriteRequest, WriteReply, Problem
event
federation/v0.1/event
EventRequest, EventReply, Problem
reconcile
federation/v0.1/reconcile
ReconcileRequest, ReconcileReply, Problem
leaseAnnounce
federation/v0.1/lease/announce
LeaseAnnounceRequest, LeaseAnnounceReply, Problem
leave
federation/v0.1/leave
LeaveRequest, LeaveReply, Problem
Operations
Operation
Action
Summary
sendWrite
send
Replicate one record version written under a lease to the other party (FED-2, FED-4, FED-6).
receiveWrite
receive
sendEvent
send
Deliver a signed JOIN, PARTITION or REJOIN event (FED-8, FED-10).
receiveEvent
receive
sendReconcile
send
Exchange the bundles each side holds for the other after contact returns; per record by epoch, then digest order; conflicts kept as correction candidates (FED-9).
receiveReconcile
receive
sendLeaseAnnounce
send
Announce a granted or renewed lease with its quorum of votes (FED-4, FED-5, FED-7).
receiveLeaseAnnounce
receive
sendLeave
send
Deliver the LEAVE event; the receiver applies the exit terms (FED-10).