What is Nostr?
dcs / dave
npub1cld…rps5
2023-01-30 22:46:35

dcs on Nostr: Somebody asked about the scalability of #python nostr-relay. After spending some time ...

Somebody asked about the scalability of #python nostr-relay. After spending some time today refactoring and stress-testing, the latest version (1.6) can easily support 1,000 concurrent clients, hammering the relay.
That's with the default sqlite configuration, "out of the box".
Switching to postgresql, and using multiple worker processes, should be able to comfortably handle many more writers.


https://pypi.org/project/nostr-relay/
#nostr
Author Public Key
npub1cldxy9f5shk0kxm90yk8nn3lum7wdmta3m6ndjcjr4aqcuewjt0sx3rps5