4 ms·
That seems cool but it took me a few seconds to realize that their 4th and 5th line of code in the clustering example in the post are identical. I doubt that sh
by jeromeparadis 15y ago
That seems cool but it took me a few seconds to realize that their 4th and 5th line of code in the clustering example in the post are identical. I doubt that should be the case. Pretty early it seems.
- sofuture 15y agopub + sub
- jeromeparadis 15y agoDoh! I really need to improve my code reading skills, it seems. Sorry. :-(
- julien 15y agoJerome, 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.