Skip to content

can socket.io-redis can be configured with redis-cluster? #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ScorpioKing opened this issue Sep 27, 2014 · 7 comments
Closed

can socket.io-redis can be configured with redis-cluster? #28

ScorpioKing opened this issue Sep 27, 2014 · 7 comments

Comments

@ScorpioKing
Copy link

No description provided.

@objectiveSee
Copy link
Contributor

Yes, here is an example: socketio/socket.io#1815

@chaudhryjunaid
Copy link

The above example seems to be of using a node cluster with a single redis server instead of a cluster of redis servers. Unless I am mistaken and the process for both is mostly the same except providing some sort of special url!

Please help!

@iojohnso
Copy link

iojohnso commented Dec 4, 2015

I am also trying to figure out how socket.io-redis can be connected to a redis cluster.

@chaudhryjunaid
Copy link

@iojohnso An alternate could be to use socket.io-ioredis, available here:
https://github.com/GannettDigital/socket.io-ioredis

and provide prebuilt ioredis clients configured with redis clusters.

@markschmid
Copy link

We also need a working socket.io adapter using a redis cluster. Did anyone solve this problem yet?
The suggestion of @chaudhryjunaid sounds promising, but it seems that prebuilt ioredis clients can only be provided for pub/sub (?)

@markschmid
Copy link

FYI, GannettDigital/socket.io-ioredis#8

@darrachequesne
Copy link
Member

By providing an ioredis pub/sub client (implemented in #95), you should now be able to connect to a redis-cluster.

Doc: https://github.com/luin/ioredis#cluster

Closing this now 👼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants