[–] lunarcave 12y ago ↗ You can partially mitigate the risks of single threaded Node by using clustering (although it's still tagged an experimental feature) [1].Also, these worker threads can be made to respawn on a shutdown caused by - let's say - an unhandled exception as [2].[1] http://nodejs.org/api/cluster.html[2] https://nadeesha.silvrback.com/setting-up-multiple-worker-th... [–] Oculus 12y ago ↗ Well by experimental feature the Node.js team means that the API to access clustering features isn't set in stone - not the stability of the code.
[–] Oculus 12y ago ↗ Well by experimental feature the Node.js team means that the API to access clustering features isn't set in stone - not the stability of the code.
[–] stephenr 12y ago ↗ I'm curious how either of these compare to say Passenger? [–] camus2 12y ago ↗ how can Passenger help with multi-threading/workers/... ? if a Passenger dev is nearby... i'm curious about it. [–] stephenr 12y ago ↗ Passenger can manage multiple node processes for the same "app" automatically.So while it isn't multi-threaded it can achieve some of the same goals (better use of multiple cores to serve more requests)
[–] camus2 12y ago ↗ how can Passenger help with multi-threading/workers/... ? if a Passenger dev is nearby... i'm curious about it. [–] stephenr 12y ago ↗ Passenger can manage multiple node processes for the same "app" automatically.So while it isn't multi-threaded it can achieve some of the same goals (better use of multiple cores to serve more requests)
[–] stephenr 12y ago ↗ Passenger can manage multiple node processes for the same "app" automatically.So while it isn't multi-threaded it can achieve some of the same goals (better use of multiple cores to serve more requests)
6 comments
[ 4.8 ms ] story [ 23.5 ms ] threadAlso, these worker threads can be made to respawn on a shutdown caused by - let's say - an unhandled exception as [2].
[1] http://nodejs.org/api/cluster.html
[2] https://nadeesha.silvrback.com/setting-up-multiple-worker-th...
So while it isn't multi-threaded it can achieve some of the same goals (better use of multiple cores to serve more requests)