Title here
Summary here
The gossip protocol uses HTTP JSON for relay-to-relay communication. It is pull-based: each relay periodically fetches from its peers and merges results.
Relay B → GET https://relay-a.example.com/api/v1/federation/instances
Relay A → 200 OK + JSON array of instances
Relay B → Merges new instances into local storeRelay A → POST https://relay-b.example.com/api/v1/federation/instances/push
Body: JSON array of instances
Relay B → 200 OK
Relay B → Merges new instances into local storeEach instance in the federation payload:
{
"id": "unique-instance-id",
"url": "https://instance.example.com",
"type": "searxng",
"name": "My SearXNG",
"region": "europe",
"country": "de",
"version": "1.0.0",
"health_status": "healthy",
"response_time_ms": 150,
"uptime_percentage": 99.5,
"cloudflare": false,
"last_checked": "2026-06-19T12:00:00Z",
"added_at": "2026-06-18T10:00:00Z"
}| Condition | Action |
|---|---|
| Instance URL not in local store | Add it |
| Instance URL exists, remote is newer | Update fields |
| Instance URL exists, local is newer | Keep local |
| Instance exists in local but not in remote | Keep local (no deletion) |