A simple message queue using node-redis
#mymq
Express service accepts two endpoints
-
http://localhost:3000/add (POST) body : { x : , y: } returns a job id
-
http://localhost:3000/job/:jobid (GET)
returns number representing the sum of 2 numbers
#dealer
Node.js application which creates workers and uses them to perform computation
#How to Run
- Clone the repo
- cd mymq/ -> npm install
- npm install redis
- Run a redis server locally on default host and port
- Hit the endpoints described above