Hi, All.

I recently developed a WebSocket server.

I plan to embed this WebSocket server into a future Nostr relay that I will develop, with enhanced documentation, comments, and testing.

https://github.com/Hakkadaikon/websocket/tree/main

By the way, there's something I've been thinking about lately.

Nostr runs on top of WebSockets, And WebSockets run on top of TCP/IP.

In the case of TCP/IP, data cannot be received in bulk using a system call, so we believe there is a problem in that it is difficult to improve performance beyond a certain level.

I believe that if Nostr were run over a UDP protocol such as WebTransport, RUDP, etc..., Nostr relay could operate even faster.

For a plain Nostr relay delivering text events, probably won't need to go this far.

However, I think this Nostr relay can be useful for delivering volatile, streaming, real-time data.

In the future, I plan to create a PoC that runs Nostr on the UDP protocol.

What do you think?

Comments, positive or negative, are welcome.

#nostr #grownostr

our nostr:npub1qdjn8j4gwgmkj3k5un775nq6q3q7mguv5tvajstmkdsqdja2havq03fqm7 and nostr:npub1wqfzz2p880wq0tumuae9lfwyhs8uz35xd0kr34zrvrwyh3kvrzuskcqsyn are both familiar with C

my relay #realy is here https://realy.lol it's written in #golang because it's the best language, that repository is a composite of forks of fiatjaf's go-nostr and relayer projects that have been heavily rewritten, most of the JSON handling is done with custom, super fast hand written codecs, i took his eventstore - the badger version, which he hates, and made it super sleek, it also has a garbage collector so you can control how much storage it uses and i just got done adding full support of expiration tags just today so it can be used with events that you mean to be deleted... and yes it also properly deletes events, as requested, if you made them, and i'm pretty sure between the custom JSON codec and the badger k/v store it could be one of the fastest relays there is

as for these other things, media and streaming and such, it's go, it's not hard to plug things in like this i just have been focused on getting the base right

also, #welcome to #nostr, fellow server/back-end/systems programmer

Reply to this note

Please Login to reply.

Discussion

Hi!

So you're also developing a relay.

I've already starred your product on Github.

thank you !