We have few node.js processes that should be able to pass messages,  What's the most efficient way doing that? How about using node_redis pub/sub  EDIT: the processes might run on different machines...
I'm looking at this code snippet:  var addSnippet = function( req, res ) {   getPostParams( req, function( obj ) {       var r = redis.createClient();        r.stream.on( 'connect', function() {         r.incr( 'nextid' , function...
I've been playing around with different publish/subscribe implementations for nodeJS and was wondering which one would be best for a specific application. The requirements of the application involve real-time syncing of objects in multi-channel,...
after shutting down the redis server, the values stored using set is destroyed, here i found the way to use the persistence store, anyone help me, how to achieve that using javascript ?  I wanna store some values from clients in redis db, and have to...
I'm slowly digging in and learning redis in my spare time, and I am interested in the options available for creating a 'listener' for a website that subscribes to a channel, and updates a webpage as messages are received.   Now, from my o...
I have been using node and redis for some time. The problem I am experiencing is, when I use hgetall in redis, it returns an object.   { uid: '6203453597',     first_name: 'Name',     last_name: 'Surname',     gender: 'mal...
I was following Stephen Grinder tutorial where he started using Promisify.   For that he gave very vague explanation saying that redis needs a callback function and he finds that very untidy + redis does not support promises in NodeJS   And afterward...
I am working with node.js and using redis for caching some of the data on the server.  My code:  var client = redis.createClient(); client.on("error", function (err) {     console.log("Error " + err); });  client.flushall();  function...
For example,  function user(){     flow.exec(         function(){             call a;          },         function(){             call b;         }     ); }  function posts(){     flow.exec(         function(){             call a;          },...
Background  I am making a publish/subscribe typical application where a publisher sends messages to a consumer.   The publisher and the consumer are on different machines and the connection between them can break occasionally.   Objective  The goal h...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.