If you are running on Windows, check out 
http://tomasz.janczuk.org/2013/05/how-to-save-5-million-running-nodejs.html

On Windows, you have the option of using the httpsys module 
(https://github.com/tjanczuk/httpsys) to replace Node's HTTP stack with the 
kernel mode HTTP.SYS implementation Windows comes with. This in turn allows 
you run several node processes listening on the same TCP port number, and 
have the OS kernel load balance incoming requests between them. Unlike with 
cluster, this approach does not require a master process. 

Also unlike in case of cluster, the httpsys module coupled with the TCP 
port sharing functionality of HTTP.SYS allows you to achieve not only 
horizontal *scale out*, but also horizontal *partitioning *with process 
level affinity. This is very useful for applications that must be scaled 
out to handle the traffic, and yet would benefit from keeping session state 
in-memory for performance reasons (e.g. socket.io chat applications). 
Again, check out 
http://tomasz.janczuk.org/2013/05/how-to-save-5-million-running-nodejs.html for 
details.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to