-
Notifications
You must be signed in to change notification settings - Fork 1
Home
ranacseruet edited this page Oct 20, 2014
·
1 revision
A Simple library to make your traditional single threaded nodejs server into a multi-process based server, so that you can make better utilization of your server cpu.
This project is inspired by multi-node project, which isn't anymore compatible with latest nodejs version.
Also a large portion of this project implementation idea is taken from hopache project's multi-process architecture.
var http = require("http");
var clustered_node = require("clustered-node");
var server = http.createServer(function(req, res){
res.end("Hello World");
});
clustered_node.listen({port:1337, workers:3}, server);