Horizontally scalable Real-time Chat using Node.js + Express.js + SocketIO + Redis
Real-time Chat example using Node.js + Express.js + SocketIO + Redis
This example demonstrates a real time horizontally scalable chat application capable of serving concurrent clients.
We are using the following components to build our chat app:
- Loggedin Nick
- Message Board
- Log of join/leave (both global & room)
- List of loggedin users
- List of Rooms
* To make the example simple, features like unique nick validation, unique room name validation & others have been kept out of the
project scope. UI is also a minimalistic one for which I owe thanks to [Ahmad Sharif] (https://github.com/theahmadsharif) for giving some of his valuable minutes!
- Node.js
- Redis
- git clone https://github.com/hasanmansur/BuddyTalk.git
- cd /path/to/redis/directory
- ./src/redis-server
- cd /path/to/BuddyTalk/directory
- node index.js
Oops!!! thts all..by now you should get a form to give your nick :-)
* For running multiple socketIO servers you might give the following command: