Gossip Federation

What Is the Gossip Mesh?

Relays share their instance directories with each other using a pull-based gossip protocol. When one relay discovers a new instance — whether from an admin adding it or from another peer — that instance propagates through the mesh automatically.

There is no central registry. The directory is whatever the collective mesh knows about.

The gossip protocol is pull-based: each relay periodically fetches instances from its configured peers and merges new entries. Push support (instant propagation on add) is planned.

How It Works

  1. Relay A is configured with Relay B as a peer
  2. Every N seconds (default: 120), Relay A fetches GET /api/v1/federation/instances from Relay B
  3. Relay A merges any instances it does not already know about
  4. Those instances are now visible in Relay A’s directory and will be shared with its own peers

Check Federation Status

curl https://relay.btoven.net/api/v1/federation/status

Returns: peer URLs, last sync timestamps, number of instances from each peer.