In my company we decided to work with nodejs for our future projects.
For the record, we may have 50 to 100 websites in the same server. It will be small website, ~1000 visitors max in same time for the entire server. We already have ~100 websites running with PHP+Apache on our first server.
My question is simple, what is the best approach ?
Multiple nodejs server :
var http = require('http'); var server = http.createServer(function (rq, rs) {...}); server.listen(3001); var server = http.createServer(function (rq, rs) {...}); server.listen(3002); ... var server = http.createServer(function (rq, rs) {...}); server.listen(3999);
Or just one server :
var http = require('http'); var server = http.createServer(function (rq, rs) {...}); server.listen(3001);
Nginx will be used for revers proxy.