Why Nostr? What is Njump?
2025-04-04 15:58:49
in reply to

pippellia on Nostr: > i don't even understand how khatru based relays are still functioning the excessive ...

> i don't even understand how khatru based relays are still functioning the excessive amount of threading they use

yeah I know, I've been running Vertex on khatru for few months. Rely uses only 2 go-routines per websocket, one for reading, and one for writing. Then, one goroutine for dealing with client registration, unregistration and requests.

> also, yeah, not to forget, i totally flattened the concurrency of the event store, so, it also is a solution for that, excessive amounts of threads in each query were a component of the resource leak problem i found with khatru/eventstore design

Oh yeah, that part is gone in my design. Users supply their query method and that's it.

In fact, all your cool DB stuff can be used in the rely.
Author Public Key
npub176p7sup477k5738qhxx0hk2n0cty2k5je5uvalzvkvwmw4tltmeqw7vgup