Cluster manager (alpha).
<<<< PLEASE UPGRADE TO THE LATEST VERSION AS OFTEN AS POSSIBLE >>>>
Installation
$ npm install doodad-js-cluster
Features
- IPC master <==> worker.
- Console to master.
- Ping workers.
Example (IPC) :
master.js
moduleexports = { const nodeJsCluster = ; const doodad = rootDoodad server = doodadServer ipc = serverIpc cluster = doodadNodeJsCluster; const MyService = doodadObject; const messenger = MyService; messenger; nodeJsCluster; nodeJsCluster; } ;
worker.js
moduleexports = { const nodeJsCluster = ; const doodad = rootDoodad cluster = doodadNodeJsCluster; const messenger = ; messenger; { ; }; ; } ;
index.js
const nodeJsCluster = ; const modules = {}; ; ; ; ; ;
Example (Console) :
master.js
moduleexports = { const nodeJsCluster = ; const cluster = rootDoodadNodeJsCluster; const messenger = ; messenger; nodeJsCluster; nodeJsCluster; } ;
worker.js
moduleexports = { const nodeJsCluster = ; const doodad = rootDoodad cluster = doodadNodeJsCluster ioInterfaces = doodadIOInterfaces; const messenger = ; messenger; const con = messenger; { ; }; ; } ;
index.js
const nodeJsCluster = ; const modules = {}; ; ; ; ; ;
Other available packages
- doodad-js: Object-oriented programming framework (release)
- doodad-js-cluster: Cluster manager (alpha)
- doodad-js-dates: Dates formatting (beta)
- doodad-js-http: Http server (alpha)
- doodad-js-http_jsonrpc: JSON-RPC over http server (alpha)
- doodad-js-io: I/O module (alpha)
- doodad-js-ipc: IPC/RPC server (alpha)
- doodad-js-json: JSON parser (alpha)
- doodad-js-loader: Scripts loader (beta)
- doodad-js-locale: Locales (beta)
- doodad-js-make: Make tools for doodad (alpha)
- doodad-js-mime: Mime types (beta)
- doodad-js-minifiers: Javascript minifier used by doodad (alpha)
- doodad-js-safeeval: SafeEval (beta)
- doodad-js-server: Servers base module (alpha)
- doodad-js-templates: HTML page templates (alpha)
- doodad-js-terminal: Terminal (alpha)
- doodad-js-test: Test application
- doodad-js-unicode: Unicode Tools (beta)
- doodad-js-widgets: Widgets base module (alpha)
- doodad-js-xml: XML Parser (beta)