Salvatore /
Redis的创建者已在此处回答:https :
//groups.google.com/forum/#!topic /redis-
db/R09u__3Jzfk
All the complexity on the end is on the PUBLISH command, that performsan amount of work that is proportional to:a) The number of clients receiving the message.b) The number of clients subscribed to a pattern, even if they'll notmatch the message.This means that if you have N clients subscribed to 100000 differentchannels, everything will be super fast.If you have instead 10000 clients subscribed to the same channel,PUBLISH commands against this channel will be slow, and take maybe afew milliseconds (not sure about the actual time taken). Since we haveto send the same message to everybody.



