one more question - where are the notes/messages stored as in history? relays? or clients? So when you logout and login again, the history is downloaded to the client. Where is it stored and if relays - then how is data bloat managed.
Discussion
oh this is a good question!
I think it might be up to the relay to archive, wonder if Damus relay archives all
#[6] ?!
nostr relay is a bucket of messages. A nostr relay just stores messages/events. Nostr is not a network where relays send all events to eachother, they only store what is given to them directly. So relays hold that message I think.
But if they never archive even what they feed to clients, popular relays will still get bloated on disk space
{"pubkey":"b2d670de53b27691c0c3400225b65c35a26d06093bcc41f48ffc71e0907f9d4a","content":"Oh shit, I was at a family dinner and came back to a full disk on the relay vm. Taking the relay down to move it to a much more powerful VM both in terms of storage and CPU\/RAM. Expected downtime: ~1h","id":"371459add1b2f6972020a5e0cd3df6a0a27f48e8edbcfec0591b886aece034d3","created_at":1671659037,"sig":"822b9452557a66da1fb1a7204c299b01413b221bf9eb0475155a4044c67bf55135cfbe823cab591c2ddf4ce94799d185af88c796f4e9cdc9674355fc59537655","kind":1,"tags":[["client","astral"]]}
For what I know, relays do NOT listen to each other. They are separate and you need to be connected to a relay where the author of events is also connected.