Hi,
I wonder if there is any drawbacks with the architecture I will present?
Say we forget about HTTP/HTTPS proxies and running each server-application
in separate processes, instead we create create a pool of "cluster workers"
whose each of them load all applications.
EXAMPLE:
Each application is exported in this way:
module.exports = function(server) {
//server is an instance of express()
server.get('/', function (req, res) {
res.end("Hello world");
});
//the only diffrence is that we use a new defined method: server.start().
server.start();
}
And in the each worker we load each application by:
var server = server_pool.create('hello.com'); //server is an instance of
express()
//whenever server.start is invoked, will server_pool start to forward
requests to it, as long as the request.host is: "hello.com"
require("./hello")(server);
Is there any "major" drawbacks with this design?
Thanks in advance!
--
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