Hey Nostr, familiar with the fastest relay yet?
https://github.com/VectorPrivacy/magnitude-relay
Benchmarks:
https://github.com/VectorPrivacy/magnitude-relay/blob/master/docs/BENCHMARKS.md
Why Magnitude Relay
Fast where it counts. On 951 requests built from 4.9 million real Vector events, it answered in 0.45 ms on average against strfry's 17.4 ms. DM inboxes and Community channels open up to 10ร faster, NIP-77 sync runs up to 6.7ร faster, and a new message reaches a 1,000-member Community in 0.58 ms instead of 41.9 ms.
Ready to scale. On two CPU cores it stores 29,000+ new messages and opens 11,000+ DM inboxes a second: hundreds of times what Vector's busiest relay sees today.
Built for Vector and Concord. Indexes and storage are shaped around how Vector reads: gift wraps by recipient, Concord channels by plane key, NIP-77 fingerprints straight from the index. Concord's limits (thousands of authors per filter, deep paging, same-second walls) are first-class.
>>> Private by design.
No AUTH: nobody has to identify themselves to read or write.
Typing indicators, push requests and other ephemeral events are relayed live and never written to disk.
Deletions (NIP-09) and Requests to Vanish (NIP-62) are honoured, and deleted data is overwritten on disk, not just hidden.
A gift wrap answers only to its recipient: nobody holding a shared Concord key can delete a Community's history.
Bulk scraping of gift wraps is refused: a wrap query must name a recipient, an author or ids.
Publishes its Tor and I2P addresses (NIP-11 privacy_addresses) so apps can find them.
Small and self-hostable. One program and one optional settings file. 4.9 million events take 11 GB where strfry needed 27 GB, a 13 GB database stays fast with 1 GB of memory, and a restart takes about half a second.
---------------------------------------------------------
Special Thanks ๐
- strfry and Doug Hoyte, for carrying Vector's messages from the start, and for negentropy, the sync protocol both relays still speak
- The Nostr community, for an open protocol anyone can build a relay for
- Rust and Tokio, for making fast and safe the same thing
---------------------------------------------------------
https://github.com/VectorPrivacy/magnitude-relay
Benchmarks:
https://github.com/VectorPrivacy/magnitude-relay/blob/master/docs/BENCHMARKS.md
Why Magnitude Relay
Fast where it counts. On 951 requests built from 4.9 million real Vector events, it answered in 0.45 ms on average against strfry's 17.4 ms. DM inboxes and Community channels open up to 10ร faster, NIP-77 sync runs up to 6.7ร faster, and a new message reaches a 1,000-member Community in 0.58 ms instead of 41.9 ms.
Ready to scale. On two CPU cores it stores 29,000+ new messages and opens 11,000+ DM inboxes a second: hundreds of times what Vector's busiest relay sees today.
Built for Vector and Concord. Indexes and storage are shaped around how Vector reads: gift wraps by recipient, Concord channels by plane key, NIP-77 fingerprints straight from the index. Concord's limits (thousands of authors per filter, deep paging, same-second walls) are first-class.
>>> Private by design.
No AUTH: nobody has to identify themselves to read or write.
Typing indicators, push requests and other ephemeral events are relayed live and never written to disk.
Deletions (NIP-09) and Requests to Vanish (NIP-62) are honoured, and deleted data is overwritten on disk, not just hidden.
A gift wrap answers only to its recipient: nobody holding a shared Concord key can delete a Community's history.
Bulk scraping of gift wraps is refused: a wrap query must name a recipient, an author or ids.
Publishes its Tor and I2P addresses (NIP-11 privacy_addresses) so apps can find them.
Small and self-hostable. One program and one optional settings file. 4.9 million events take 11 GB where strfry needed 27 GB, a 13 GB database stays fast with 1 GB of memory, and a restart takes about half a second.
---------------------------------------------------------
Special Thanks ๐
- strfry and Doug Hoyte, for carrying Vector's messages from the start, and for negentropy, the sync protocol both relays still speak
- The Nostr community, for an open protocol anyone can build a relay for
- Rust and Tokio, for making fast and safe the same thing
---------------------------------------------------------
105โค๏ธ8โค๏ธ3๐2๐1๐1๐ช1