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 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...
For example,  function user(){     flow.exec(         function(){             call a;          },         function(){             call b;         }     ); }  function posts(){     flow.exec(         function(){             call a;          },...
Below command only gives channel list .  127.0.0.1:6379> PUBSUB CHANNELS 1) "mychannel" 2) "mychanne2"   How to LIST subscribers subscribed on channel1 OR channel2 .?  also   i din't found redis command to list all subscribers...
I try to get an information from a redis db and return it as the body of the response to the user. First, here is a code that fails :  var redis = require("redis"),     koa = require("koa");  var app = koa(),     port = process.argv[2...
I am using the library node_redis as the client for a micro-service message client that I am writing. Clients get messages from their application in their outbox that they need to send to other services. Everything is working great but I am trying to...
The documentation on Timers for nodejs says that setTimeout will return a timeoutId http://nodejs.org/api/timers.html#timers_cleartimeout_timeoutid  When I use javascript in a web broswer, then I get an integer as a return value.  var b = setTimeout(...
Trying to create two clients; one is pub/sub, the other is a standard connection.  Is this not possible?  There must be a way to abstract this to  work :)  Basically, if I do a get key after running test.js, all I see is 'valueBefore'.  The o...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.