-

@ Quentin
2025-02-27 07:18:37
I’m almost done with the new relay for nostrcheck-server, currently experimenting with search extensions.
So far, it’s stable and fast with 3,000,000 events loaded into memory. I had to fine-tune every operation to avoid bottlenecks across the system.
Querying such a large dataset is inherently slow, but on top of that, the relay has to handle hundreds of simultaneous requests over open WebSockets.
To tackle this, the relay currently runs with a pool of n workers and a processing queue for heavy tasks.
It’s fully compatible with all relevant NIPs. Not designed for 100 million events yet, but more than capable of efficiently handling community-scale needs.
I’m sure I’m running into the same problems others have already solved, but I’m doing it anyway—because this is Nostr. We have to keep 500 incomplete and incompatible clients connecting to 500 incomplete and incompatible relays, otherwise, what are we even doing here? 🤣🤓
Good morning #nerdstr 🥳🥳