Skip to content

awerlang/node-cluster-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b51c600 · Aug 24, 2017

History

1 Commit
Aug 24, 2017
Aug 24, 2017
Aug 24, 2017

Repository files navigation

simple

Spawns as many worker processes as there are CPU cores. Restarts process when they crash.

There's nothing special with the worker app and it can be run standalone.

Run with:

node simple/server.js

sync

Implements inter-process communication. Worker app must start after ws has started.

Inside a cluster, process.send() becomes available.

Run with:

node sync/server.js

About

Sample cluster implementation in Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published