-
run
npm install
. -
Install redis and run on localhost:6379
-
Run
node main.js
to fire up the server instances and the proxy server -
Load balancer : 0.0.0.0:3000
-
Server instance 1 : 0.0.0.0:3001
-
Server instance 2 : 0.0.0.0:3002
https://github.com/SagarGurnani/Queues/blob/master/ProxyHW.gif
Proxying achieved using http-proxy
module and the Redis RPOPLPUSH
functionality
https://github.com/SagarGurnani/Queues/blob/master/ProxyHW6.gif
https://github.com/SagarGurnani/Queues/blob/master/ProxyHW7.gif
upload
achieved using theLPUSH
Redis commandmeow
achieved using theLRANGE
andLTRIM
Redis commands
https://github.com/SagarGurnani/Queues/blob/master/ProxyHW5.gif