Tree of Relays Fixes This

someone

18. Juli 2024July 18, 2024 · 3 Min. Lesezeit3 min read

Tree of Relays

Each relay selects a branch from above and starts serving.

Some big machines in the top layers can handle more. Smaller machines in layers below are needed for decentralization and scalability.

Some top layer machines can act in sync only mode, efficiently distributing notes among layers.

Relay or the admin posts a special kind for advertisement of the relay:


{
"pubkey": "...pubkey of admin or the relay itself..",
"kind": 30202,
"tags": [
["d","..10"],
["ip4","111.222.33.44:443","primary"],
["ip6","abc:def::443","backup"],
],
...
}

The above example says this relay will handle the note id's that are ending with bits ..10. In this case it is going to handle about 1/4th of the network.

Primary way of reaching at this relay is through ip 111.222.33.44. There is also a backup server.

Clients can accept this advertisement based on web of trust or historical reliability of the npub. Or other npubs can measure the reliability of this relay and send reactions to this note. Clients then can see these reactions and rank these services.

Solves:

Written by

Comments

No comments yet. Start the conversation.