/node-concurrency-parallelism

This is a project to validate the usability of Threads, Pools, and Clusters for the purpose of process parallelism and concurrency

Primary LanguageJavaScript

node-concurrency-parallelism

This is a project to validate the usability of Threads, Pools, and Clusters for the purpose of process parallelism and concurrency.

running factorial function

Clone the repo and run node index.js [valueToFactorial] [usePool?] in the terminal to run the script

running node server

node server.js then curl http://localhost:[3000 || 3001]/heavy to call the heavy function and curl http://localhost:[port]/hello-world in another terminal to validate the thread occupation