i reverted the implementation of rate limiting on #realy because it just resulted in a massive increase in goroutines... some 700 threads holding maybe that many sockets open and cpu usage was at max likely due to constant need to do garbage collection
the websockets for everything model of #nostr as it stands today is an utterly retarded and broken idea that should never have got this far, it's impossible to maintain this many connections without exhorbitant resources, and it's unnecessary - and the simple fact of the ambiguity about whether a filter without an "until" value means "keep open the subscription" is even worse because every time a new event is submitted, every single thread with an open subscription is checking for a match
it might almost work if there was an optimized matching engine and we switched to HTTP/3 with its multiplexing and QUIC but this isn't what we are looking at here
there is a reason why most of the web runs on RESTful interfaces
subscriptions on websockets is fine, but that is the sole purpose and reason to use websockets, everything else can be done with standard HTTP, without the ridiculous resource consumption
so, as such, and because i need to stack more sats if i'm gonna have any hope of realising the boat ownership dream, with the #catstr #mochi as my first mate and support animal, i'm putting all my nostr work on hold unless i can get funding to focus on it... and i need to finish the current task i am assigned to in my paid gig, so i might as well do this
the other thing is that #realy desperately needs a full code review and refactor... there is things dangling in there like the spider, which needs to be popped out to be its own separate service that is run from a more secure position than inside the relay itself, the rate limiter needs to actually be installed and some kind of resource management scheme to garbage collect stale and long living websockets needs to be done... ideally there would also be an accounting system added and then paying users could be charged for their use instead of the open slather that is the current situation, only mitigated by the limitation of having only a small (ie 11k) whitelisted writers... and then there is the implementation of the simplified HTTP-focused redesign of the protocol, which i have specced up but will take me weeks to build
so, since i don't have the time or resources to do this, for now it's on hold
gotta go spend my 6-8 hours a day in the fiat mines and finish my current assignment
the other thing is that i'm starting to get tired of working with shitcoins... what has really triggered me is remembering kate beckinsale and underworld and penis facial and sony corporation and they are talking about supporting the sony deployment of the ethereum network (their own, called soneium) which makes me vomit in my mouth just a bit when i think about the whole constellation of associations i have with that company, and with ethereum, jp morgan, consensys, me having almost got a job with consensys - and ethereum, before falling homeless
and what really triggered all that was i woke up to a dream this morning, where i lost some important documents, cards, or something, while stuck in a place full of homeless people and filth
and i'm like
yeah, nah
gonna finish the work i have pledged to do, and stack my ass off and then try to find something less vomit inducing to do for my income