Damus
Gzuuus profile picture
Gzuuus
@Gzuuus

Forever learning, continuously buidling⚡
cryptoanarchism student
chat: https://cordn.net/p/npub1gzuushllat7pet0ccv9yuhygvc8ldeyhrgxuwg744dn5khnpk3gs3ea5ds

#noderunner#Bitcoin | #technology | #art | #electronics

Relays (4)
  • wss://nos.lol/ – read & write
  • wss://rilo.nostria.app/ – read & write
  • wss://relay.damus.io/ – read & write
  • wss://relay.primal.net/ – read & write

Recent Notes

Vitor Pamplona · 1d
There is a proposal by nostr:nprofile1qqsf03c2gsmx5ef4c9zmxvlew04gdh7u94afnknp33qvv3c94kvwxgsppemhxue69uhkummn9ekx7mp0qyvhwumn8ghj76rzwghxxmmjv93kcefwwdhkx6tpdshsz9thwden5te0wfjkccte9ejxzmt4wvhxjme0sa...
Gzuuus profile picture
Bad idea, imho. Not as bad as NIP-04, but getting closer. Also, it will make nip 17 DM traffic distinguishable from all other gift wrap traffic, which, from my point of view, really harms metadata protection. Currently, I don’t consider nip 17 private, but this would make it much worse. Have you read my article on this subject?
V E C T O R · 2d
Drop us the link! We will share it on X and also on Vector with our community. Thanks for the coverage, even before we got a chance to review. Appreciate the highlight and mention, regardless 🙏
Pip the WoT guy · 3d
curious to learn more about yours 😉 But the relay when receives any kind of REQ it will index the subscription, which is not super cheap. Nostr should have separated the request response command ...
Gzuuus profile picture
We've talked about this different times. If you expect to have an undefined number of requests during a session, it's more efficient and performant to use WS. Yes, you could batch and create a single HTTP request with all the targets a user wants. But that doesn't work in all situations. You cannot know beforehand all the targets the user may have during a session, so it'll probably end up making a number of small requests.

Also, I agree DVMs are a tragedy, they're very poorly designed. But nothing stops you from receiving a response that is a subscription. Indeed, you can do that with @ContextVM now, so that's also an optimization in some scenarios where users subscribe and receive responses as long as they stay online.

And yes, aside from all of that, I agree relays could be optimized. WS introduces the 101 overhead, and so on, but relays as message bus (DVMs/CVMs) offer something you cannot get with an HTTP server, which is getting rid of IPs, DNS, SSL, NATs, etc. If you want to run an HTTP server, you have to comply with all of that.

To make this clear: I'm not against one solution or the other. Different approaches, different tradeoffs. I think that open ranking is good to be running on HTTP servers. I wish it could be transport agnostic so I can implement it in Relatr.
1
Pip the WoT guy · 2d
You raise some good points. I would say in general the tradeoff is simplicity vs flexibility. WS allow to make many small requests, where HTTP does it with batching. WS pays a bigger cost at the beginning, which may get compensated, depending on the usage. WS are more complex to deal with, almost...