I wonder, have you done some performance benchmark using various relay implementation? At least, how many ops/s relay can process (read-only, write-only, and both operations)? How many ops/s that we can finally say "it is scalable"?

I think at least that can be the start of discussion

Reply to this note

Please Login to reply.

Discussion

Long-term aim is to be able to handle 10 billion users, with 1000s or millions of ops/s and sub 100ms response time. Will take a few years to get there, but an architecture can be designed.

I think regular web can already handle partially of that requests (1 million req/s)

https://www.techempower.com/benchmarks/#section=data-r22&test=json&hw=ph

It just we need more load balancer server with horizontal and vertical scaling applied. The most bottleneck part is probably verifying schnorr signatures multiple times for all events incoming.

Relay developers have such a big homework to achieve that. They also need to optimize many things.

But yes, we need case studies!

I think nostr:npub1f5uuywemqwlejj2d7he6zjw8jz9wr0r5z6q8lhttxj333ph24cjsymjmug - san (Japanese dev) has already done some performance benchmark using various relays in #nostrasia hackaton.

nostr:npub1f5uuywemqwlejj2d7he6zjw8jz9wr0r5z6q8lhttxj333ph24cjsymjmug - san, where we can read your reports about relay performance? Is it in your github? Sorry, i may missing that 😅

I've created benchmark tool named xk6-nostr.

https://bolt.fun/project/xk6-nostr

You can see a peformance comparison of relays at this demo video:

https://youtu.be/0G76WQMf1PY?t=121

Thank you kamakura-san 👋