A demonstration project using Redis to maintain an online waiting list when participation in a room exceeds a given limit.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
public
test
views
.gitignore
LICENSE
README.md
package.json
server.js

README.md

redis-waiting-list

A demonstration project using Redis to maintain a realtime waiting list when participation in a room exceeds a given limit. Read the blog post at http://blog.carbonfive.com/2014/01/17/using-redis-sorted-sets-to-build-a-scalable-real-time-web-waiting-list/.

Installation and running

To run the demo, make sure you have recent versions of Node.js and Redis installed on your machine. Redis needs to be running on the default port with no authentication.

From the project directory, run:

npm install
npm start

You should now be able to connect to the server at http://localhost:8234, follow the instructions from there.

Testing

The project only tests the core waiting list logic. Make sure Mocha is installed on your machine and run:

mocha test