walmartlabs/kali — Issue #1: [Design Decision] Move cluster module into WorkerPool?
Author: thegoleffect
Created: 2012-03-07 00:45:11+00:00
State: open
Labels: enhancement

There is a question of whether or not the factor in the node built-in cluster module INTO WorkerPool as opposed to the situation in `examples/server.js`. In `examples/server.js`, the cluster module is required and there is fork logic here.

Alternatively, the WorkerPool object could accept some options AND some code for the Workers to execute. This would reduce the `server.js` to just two lines (requiring Kali/WorkerPool and starting it).

I still have to think about it a bit more.