Skip to content

A single instance of Node.js runs in a single thread. To take advantage of multi-core systems, the user will sometimes want to launch a cluster of Node.js processes to handle the load. The cluster module allows easy creation of child processes that all share server ports. Adonisjs on multi-core machines.

Notifications You must be signed in to change notification settings

tachgurbanov/adonisjs-multithreaded

Repository files navigation

adonisjs-multithreaded - on multi-core machines

Run adonisjs

npm install && npm run dev

http://localhost:3333/2367949
Testing prime numbers
  • 22167924 - 3 ms

  • 2367949 - 65 ms

  • 93686687 - 7.64 s

  • 936868033 - 1.17 s

About

A single instance of Node.js runs in a single thread. To take advantage of multi-core systems, the user will sometimes want to launch a cluster of Node.js processes to handle the load. The cluster module allows easy creation of child processes that all share server ports. Adonisjs on multi-core machines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published