Skip to content

Message app in MongoDB over a REST API with notifications over Socket.io in a clustered setup with Redis

Notifications You must be signed in to change notification settings

nolemmings/socketio-cluster-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socketio express4 test

This quick prototype combines a REST API with a socket connection in a clustered Node.js environment. Data is stored in MongoDB while socket.io session management is done in Redis.

Run

First install both Docker and Docker Compose.

When you have a working Docker and Compose setup you should be able to run the environment using:

docker-compose up

This starts two node.js servers, a MongoDB server and a Redis server.

If you're using a non-linux OS, make sure ports 3000, 3001, 6379 and 27017 are being forwarded in your VM. For Mac OS X, check here how to do this for boot2docker.

When Docker Compose is running open http://localhost:3000 and http://localhost:3001 in your web browser and check experiment!

About

Message app in MongoDB over a REST API with notifications over Socket.io in a clustered setup with Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published