node.js is running in a single thread. But you don't have to have just one node.js process, right?
 
Just run a bunch of them with a `cluster` module. Basically, that's what PM2 does (it's the most popular wrapper for clusters as of now). 
 
Or run them all on separate ports and use nginx for routing. Oh... that's kind of funny, I just suggested a "3rd party webserver" you complained about. :)
 
Anyway, node.js is the best at what it does (that's scripting and writing servers), and nginx is the best at what it does (that's static file serving and basic routing). There is almost no overlapping between the two, and there is no reason not to use both if you have to.
 
 
25.08.2014, 21:53, "Manish Bansal" <[email protected]>:
Hi Friends, 
I am very new to node.js and still exploring few opportunities where i can use this server/technology for our development in a pilot project effectively and efficiently. so far my experience is great, BUT the biggest issue i found with node is (which is often advertised as pros) the development technology + server is running in single thread. therefore any unhandled unexpected exception which is causing due to programming/environmental issues brings the server down. when i am thinking about all other innocent users connected to my single threaded node servers, my decisions gets influenced.  
overthemore when i came to know Nodejs.org is also hosted on 3rd party webserver "nginx" i took my step back of trying this attempts. 
 
Please share your thoughts.
 
Manish Bansal 
 

 

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/a9daf644-6430-4d3f-a3c1-0af1f5ef7049%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/783231409087812%40web6o.yandex.ru.
For more options, visit https://groups.google.com/d/optout.

Reply via email to