joaojeronimo / node_redis_cluster

A thin wrapper over node_redis to make it work with Redis Cluster
53 stars 17 forks source link

Some question #5

Closed h0x91b closed 9 years ago

h0x91b commented 9 years ago

Did you know how PUB/SUB working in cluster?

Did it replicate message to each node or I need to do it over one specific node like regular redis?

joaojeronimo commented 9 years ago

According to the cluster spec when you publish a message to a node, it's propagated to the other nodes through the cluster bus, so you can subscribe in any node and get your messages delivered there. This means there's nothing special needed to be done regarding pub/sub right ?

h0x91b commented 9 years ago

Didn't see this spec before, thanks for the link :)