ch3ll0v3k / sc-horizontal-with-loadbalancer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sc-horizontal

In order to make this work you must do the following. (Yes, I know this can be simplier but I wanted to spell it out...)


1) sudo apt-get install redis-server

2) npm install loadbalancer -g

3) cd first && npm install && cd .. && cd second && npm install && cd ..

4) open 3 terminal windows or split if you are using something like terminator

5) In one terminal $ redis-server , in the other two windows run both server files.

6) Use the redis-cli to send a broadcast to both servers and watch the messages in the developer consoles of both browers.

7) Enjoy!

About


Languages

Language:JavaScript 99.3%Language:HTML 0.7%