If two separate clients do a PUBLISH on the same channel, can I assume that the order in which the subscribers will be informed will be respected ?
- ALL subscribers receive the fist PUBLISH msg
- then ALL sunbscribers receive the second ?
Since redis is singlethreaded it should but I want to make sure it does not process both PUBLISH in parallel.
Yes,
PUBLISHis a synchronous command. It does not return until it pushes the message to all subscribers. And differentPUBLISHcommands are naturally serialized in Redis request queue.