ralee's avatar
Level 5

Socket Redis with Loadbalancer

Hi Guys,

I am recently expanding my network from a standalone server to loadbalancer with multiple nodes on them. In the past i can put everything (Database, Redis, Application) all on the same server and it works fine. Coding was easy, life was easy.

But now switching over to load balancing, i have no idea where to run my socket.js script on which port. Have anyone done this before?

Please share.

0 likes
1 reply
leov's avatar

It's recommended to use port 80 (http) or 443 (https) in order to pass through (unmodern) firewall configs.

I'm running a socket.io script handling messaging through redis on a separate server. The servers running the script could of course also be load balanced.

Please or to participate in this conversation.