Skip to content

antt001/scalable-chat-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket.IO Chat with nginx & redis

How to use

Install Docker Compose, then:

$ docker-compose up -d

And then point your browser to http://localhost:3000.

This will start four Socket.IO nodes, behind a nginx proxy which will loadbalance the requests (using the IP of the client, see ip_hash).

Each node connects to the redis backend, which will enable to broadcast to every client, no matter which node it is currently connected to.

# you can kill a given node, the client should reconnect to another node
$ docker-compose stop server-george

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published