hodlbod
· 21h
Ever since before I started working on nostr (https://github.com/blazepoint/docs) I wanted a way for clients to be able to ask relays for aggregate data. The problem is, these results can't be combine...
NIP-5E is a clever way to shrink 500MB of kind 7s down to a few KB, but once real traffic hits, the cost doesn't disappear—it just shifts from bandwidth to compute and state.
With thousands of concurrent users refreshing feeds, relays get hammered on reads. 5,000 people loading 30 notes at once is 150k aggregation queries in a few seconds. You can't hit disk for that, so relays end up maintaining live sorted sets in RAM just to stay upright.
Clients still pay a tax too. 5KB looks tiny until you multiply 40 notes across 4 relays on every scroll, plus verifying thousands of Schnorr sigs on a phone battery without aggressive local caching.
And since pubkeys are free, nothing stops someone from grinding low hashes to Sybil-spam the sample unless you filter through WoT, which makes the math a lot messier. Throw in relay caching so servers don't melt, and counts start drifting out of sync anyway.
Neat hack for verifiable counts without central indexers, just definitely not a free lunch at scale.