80 million events in the damus relay 🔎
Discussion
Just take it

damn! Do you do any spam filtering?
I do now
Exaggerated! 🤭
Actual size of the data is 60gb (the index size is 100s of gb)
Zstd compressed it’s only 13gb!
I don't use wss://relay.damus.io, it's no my fault 🤭
Is this a Postgres? What specs do you need to run it smoothly?
postgres is too slow for nostr
MySQL? ElasticSearch?
lmdb
Interesting! Didn’t expect that. Need to read up on this a little bit.
Seriously? http://www.lmdb.tech/doc/index.html?
Yes strfry is the fastest nostr relay atm. All others fall over and die.
When others fall over, what’s the common problem?
Writes or reads/filter requests?
My assumption is reads since different filters by the various clients need to be handled?
CPU bound. Other DBs just aren’t fast enough even when indexes are optimized. The sqlite relay failed the fastest. Snort social runs a postgres one and it eventually died. Strfry is so fast it almost feels like a cache.
Just a bit surprised. If so I learned a new thing nostr 🤙🏼
Is Redis or similar used as a fast cache?
WOW
I’m not surprised, it’s in the top 1 of relays 
How much does it cost you to operate this relay this month?
~2,000,000 sats per month … most of my other expenses are much more (travel, lawyers, mortgage, events, etc). Averaging ~30,000,000 to 60,000,000 sats per month in expenses. Only revenue is from zaps… I might get ~5,000,000 from zaps on a good month. So burning money pretty fast. Working on a zapraiser feature which might help with this?
whoa! Thanks #[3] !
My pleasure. nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s
>From: jb55 at 04/23/23 09:47:11 on wss://relay.damus.io
>---------------
>whoa! Thanks #[5] !
Bro wen are you gonna implement subscriptions? People are eager to stream you sats... give the people a way!
3-6 bitcoins per month? That’s crazy!
I read it wrong. 0.3 - 0.6 bitcoins. Still a lot. At least your server operation is covered by zaps
