Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

In this section: Build
Start
Reference code
Tools
API reference
Public services
Agents
Bindings and crosswalks

Observatory Protocol federation sync (draft OIP-0004)

Source schemas/asyncapi/obsp-federation.asyncapi.yaml

On this page
  1. Servers
  2. Channels
  3. Operations

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.

FieldValue
Documentschemas/asyncapi/obsp-federation.asyncapi.yaml
FormatAsyncAPI 3.0.0
Version0.1.0

Servers

ServerHostProtocolVersionDescription
peer{peerHost}httpsA federation peer. Mutual TLS in front of the service (FED-3); the reference service listens on loopback.

Channels

ChannelAddressMessages
writefederation/v0.1/writeWriteRequest, WriteReply, Problem
eventfederation/v0.1/eventEventRequest, EventReply, Problem
reconcilefederation/v0.1/reconcileReconcileRequest, ReconcileReply, Problem
leaseAnnouncefederation/v0.1/lease/announceLeaseAnnounceRequest, LeaseAnnounceReply, Problem
leavefederation/v0.1/leaveLeaveRequest, LeaveReply, Problem

Operations

OperationActionSummary
sendWritesendReplicate one record version written under a lease to the other party (FED-2, FED-4, FED-6).
receiveWritereceive
sendEventsendDeliver a signed JOIN, PARTITION or REJOIN event (FED-8, FED-10).
receiveEventreceive
sendReconcilesendExchange 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).
receiveReconcilereceive
sendLeaseAnnouncesendAnnounce a granted or renewed lease with its quorum of votes (FED-4, FED-5, FED-7).
receiveLeaseAnnouncereceive
sendLeavesendDeliver the LEAVE event; the receiver applies the exit terms (FED-10).
receiveLeavereceive