Avatar
lebrunel
7cba75b29047bddabbad7846ff20b220b0a08fd02b4ec1e0165fd6cc26cbb734
You'll never see the aldea. It doesn't exist. The aldea must be built.

Something that's been keeping me busy for the last 6 months...

https://www.youtube.com/watch?v=h6actzI2cz0

I think Elixir is pretty well suited for the design of a Nostr relay. I haven't put Nex through its paces yet, but in theory you should get good bang for your buck in terms of concurrent connections and cost of hardware.

It does. Uses K256 rust bindings for the Schnorr crypto.

The relay is called Nex. You can find it here:

https://github.com/lebrunel/nex

To my knowledge it's the second most feature complete relay out there. But I don't have much reach on Nostr yet so no-one knows its there. Any shares appreciated 🙏

Being elixir, should scale quite nicely, but not put through its paces yet.

DB-wise it uses Ecto so any sql database will fit. The package is set up for postgres but I've tested locally using sqlite and all passes nicely. Subscriptions go in an ETS table but thats probably where the biggest optimisations need to come.

Would require relays to all have the same events and agree on their order (like a blockchain).

I believe a bloom filter is more in line with what you’re envisaging.