0
votes
0answers
20 views

Node.js multi-server cluster: how to share object in several nodes cluster

I want to create a cluster of node.js server in order to support many concurrency simultaneously, for a chat rooms applications. The servers hold information that needs to be shared between all nodes, ...
0
votes
1answer
17 views

Dealing with asynchronous node_redis functions, awkward using INCR on two keys at once

Say my server is preparing a new object to send out in response to a POST request: var responseObj = { UserID : "0", // default value ItemID : "0", // default value SomeData : foo } ...
-7
votes
0answers
36 views

chat to discuss where just 2 user [closed]

Who can help me and me with some explaining to do a chat to discuss where just 2 user (in nodejs)? (I found a method of the chat group where all posts and see what's posts, example
0
votes
0answers
23 views

Express + Passport + RedisStore session data not always updated

I have a Node.js app. I am using Express + Passport for Authentication. I am using a Redis Store for the session. I want to upload files, then write the name of the file to the session. Here is my ...
0
votes
1answer
19 views

Using mysql instead of redis to share context for clients hitting multiple instances

Okay , i went through a few posts regarding scalabality of nodejs/socket.io . And in all cases i found out that apart from using load balancers , it is recommended to use redis for key:value storage ...
0
votes
1answer
30 views

How do you instruct mocha/nodejs to wait till all db operations are over

I'm trying to test if some of my db operations are executed properly. The flow is as follows (I'm using mocha for testing) Call code which loops through data and saves it to redis Get data from ...
1
vote
2answers
24 views

Getting everything stored in Redis and sending it to a template

I'm building a little Node.js app, and one of the things I need to do is fetch all of the data in the Redis datastore and display it on this specific page. So far, my code looks like this: ...
0
votes
1answer
29 views

In redis how to get the value of the particular key?

In my node application i'm using redis DB to store the data.While getting the stored value using key i'm not getting the expected output. var redis=require('redis'); var client = ...
0
votes
1answer
25 views

Redis connection close

Im using connect-domain and connect-redis. Below code checks for redis cache in Redis database. function redis_get(key, req, res) { var redisClient = redis.createClient(); redisClient.get(redisKey, ...
0
votes
1answer
43 views

How are left join, inner join, union of mysql can be replicated in redis

I think cross referancing is a good way of learning. I made some research on redis and it seams that as a schameless database redis don't have tables. Instead of tables it has got key-value, key-list, ...
0
votes
1answer
38 views

Getting multiple keys using node-redis

I'm trying to get a bunch of keys from a redis instance. I'm using node-redis. I'm using a loop: for( var i=1; i<=num; ++i ){ client.get(key + ':' + num, function (err, reply) { ...
0
votes
0answers
67 views

Need advice on making a real-time web app [closed]

Hi I'm working on a collaborative web based document editing app and I'm looking for some advice on transitioning to Node.js. Currently it's PHP/MySQL server side and the editor is client side JS. ...
1
vote
3answers
45 views

Add a value to a Redis list only if it doesn't already exist in the list?

I'm trying to add a value to a list but only if it hasen't been added yet. Is there a command to do this or is there a way to test for the existence of a value within a list? Thanks!
2
votes
1answer
42 views

Should I share Redis connection between files/modules?

I'm developing a node.js app and I am in need of heavy Redis usage. The app will be clustered across 8 CPU cores. Right now I have 100 concurrent connections to Redis because every worker per CPU has ...
0
votes
2answers
46 views

how to store signup data into redis with node.js

i want to store signup data it contains name and email and password. i will store this data in mongodb like this db.save({"name":"xxxx","email":"xxxxx","password":'xxxxxxxx'},function(err,result){}); ...

1 2 3 4 5 35
15 30 50 per page