4 ms·
Jerome, the cluster example is just an example of clustering :) you can run the example/c2s.js for a single node example (which won't even require redis). Also
by julien 15y ago
Jerome, the cluster example is just an example of clustering :) you can run the example/c2s.js for a single node example (which won't even require redis).
Also, the 2 lines are actually different. The node.js lib for redis is a bit weird, so we need both a "pub" client and a "sub" client :)
- jeromeparadis 15y agoSorry about the remark. What a difference a character makes... I suppose it was too late or too early in the day. In any case, your article was quite helpful because I've been using Redis a lot, but not yet the PubSub functions. I've found this approach solves a clustering problem I foresee with a current real-time node project.