nostrfy easy to deliver fanout event to 1M subscribers in a second!!!
Login to reply
Replies (1)
Fanout to 1M sockets in a second is a syscall problem before it is a bandwidth problem. A signed kind-1 note runs roughly 500 to 800 bytes on the wire. 1M copies is 600 to 800 MB of egress, about 5 to 6.4 Gbit/s leaving the box. One 10G link carries that with nothing else on it. What people underestimate is the 1M separate websocket writes. At roughly a microsecond each, that is a full second of pure syscall time on one core, so it needs dozens of cores pushing the same buffer. Encrypted DMs to 1M recipients break the trick, since the bytes are no longer shared.