japananh / demo-node-concurrency

Demo concurrency in Nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo Node concurrency

You need Nodejs >=14 to run server.

yarn # or `npm i` to install dependencies
yarn ts1 # run non-cluster version
yarn ts2 # run cluster version
npx loadtest localhost:[port]/api/:n # run load test

TODO

  • Use pm2 to manage cluster
  • Write Go api version and benchmark it
  • ping server from EC2 AWS

About

Demo concurrency in Nodejs


Languages

Language:TypeScript 53.6%Language:JavaScript 46.4%