Skip to content

gopalanand333/nodejs-multi-threading

Repository files navigation

nodejs-multi-threading

Node.js multi threading example with real health data

When we have alot of different data sources and multiple calls happening at same time, A single thread can freeze or take alot of time to give response.

  • In this example, we will call different service threads for each type of calculation and compare the time taken for them

to run on dev enviornment with nodemon use:

npm run dev

to run on server use:

node index or npm start

Releases

No releases published

Packages

No packages published