tidwall / redcon

Redis compatible server framework for Go
MIT License
2.16k stars 159 forks source link

great work on pub/sub. any benchmark? #36

Closed hiqsociety closed 3 years ago

hiqsociety commented 3 years ago

great work on pub/sub. any benchmark compared with redis? it's really good.

tidwall commented 3 years ago

Thanks. I'm not aware of any public tools for benchmarking Redis pub/sub, and I didn't make one myself. Do you know of one in the wild? I would be interested too.

That being said, my implementation should perform very well because each subscriber runs in their own thread and each channel that they subscribe to is stored as an entry in a b-tree. Also publishers won't block the rest of the Redcon system while sending messages, and won't block other publishers too. So it should scale very well.

gitmko0 commented 3 years ago

i think they use this against redis pub/sub https://docs.nats.io/nats-tools/natsbench