antirez/redis — Issue #198: Question + feature suggestion: Pub/Sub:  O(N) 
Author: technomagos
Created: 2011-11-20 23:30:10+00:00
State: open

A strong feature of redis is the easy support of thousands of connections/clients.
A question on the performance of Publish given potentially many 100s of subscribers.

Does Redis execute PUBLISH on a channel *sequentially*? I.e. send first the msg to the 1st subcriber, then to 2nd and finally to N? So if 1000 subscribers and the avg latency is 10msec, the PUBLISH will take 10 secs to complete?

If this is so, the suggestion is to add some "socket threads" support , so the PUBLISH takes advantage of some "fan/out".
Or something in those lines.
Feasilble?