Clients and relays
What are relays?
What are Relays and how do they work?
What are relays?
Relays are like the backend servers for Nostr. They allow Nostr clients to send them messages, and they store those messages and broadcast those messages to all other connected clients.
Do relays store all the data?
No, each relay only stores whatever it wants. The basic idea is that users are attached to some relays they choose and they publish their notes to those, and other users learn about relay preferences of their friends, then connect to their friends' relays to download their notes.
That sounds cumbersome.
Yes, but it should all be done automatically by your client software, you shouldn't have to worry too much.
Should I run my own relay?
For most people, no, it's better to just pick a few public relays or relays from people you know and trust, or even relays that offer paid services.
With that said, if you want to ensure that your speech is absolutely uncensorable or if you want to run a special-purpose relay for you and maybe some friends or a community you totally should!
Relay Wizard has a one-click setup script ready for you with multiple relay software options, while Relay Runner has more detailed explanations and step-by-step guides.
How can someone find me in a personal or obscure relay?
That's a long explanation, but hodlbod tried his hand at explaining it here and Jeff gave it a shot here.
This is interactive demo that shows how Nostr clients find the relays for others and keep updating their findings as conditions change.
OK, but where do I find some relays to use?
It's pointless to maintain a list of known relays and you shouldn't worry about it. Once you install a client it will probably give you some default relays. From there you can start learning about other options, who controls each relay, what are the peculiarities of each and then be able to pick and choose as you become an advanced user.