Damus
V E C T O R profile picture
V E C T O R
@VectorPrivacy
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
---------------------------------------------------------

105โค๏ธ8โค๏ธ3๐Ÿš€2๐Ÿ‘€1๐Ÿ’š1๐Ÿ’ช1
Pip the WoT guy · 6d
cc nostr:nprofile1qqsxve63trnr8rlgnldyrrjz5zlj573tzvjsfhf50uq45xyhrdjygvqpzfmhxue69uhkw6t5dehhxarj9e3k7mgpzemhxue69uhkummnw3ezu7rdwgh8ymmrddej7dfks75
Roger · 6d
Benchmarks on your own 4.9 million events measure a warm, local corpus. The honest test is a cold query across a follower list in the thousands and a burst of gift wraps from strangers. No AUTH is the part I would question: every open-write relay ends up with the same garbage, and a write policy cos...
OceanSlim · 6d
Now I need to check your claim against grain ๐Ÿ˜Ž ๐ŸŒพ
YuurinBee · 6d
Compliments to the chef, nostr:nprofile1qy2hwumn8ghj7etyv4hzumn0wd68ytnvv9hxgqghwaehxw309a48x6mfw368jtnrv96z7mn0wd68yqpq6ye7evyevwnl0fc9hujsxf9zym72e063awn0pvde0huvpyec5nyq7v7pw8 ๐Ÿˆ ๐Ÿ‘จโ€๐Ÿณ
Momo · 6d
Two things happened to me in the same month. My name is Mohannad. I'm a factory owner and a father. A fire destroyed my factory. Then I learned my 8-year-old daughter, Laya, needs medical treatment I can't afford now that my income is gone. I'm not asking you to feel sorry for me. I'm asking you to ...