Just wondering your thoughts on this.

I have a website (developed in PHP backend + backbone) that occasionally 
gets loaded with DB requests (Mysql). The server (Apache) stalls when this 
happens.

I was wondering if I could benefit using Node.js together with Apache in 
the following way.

Apache: serving HTML + JS files.
Node.js: database connections

I heard about the non-blocking nature of Node.js. But migrating everything 
to Node.js is not a feasible task right now.

So I thought of installing Node.js and use it along with Apache, and just 
have the URL of the models and collections. I will keep using the current 
files making up the site structure while delegating all DB connections to 
Node.js enpoints.

For example:

var ModelForNode = Backbone.Model.extend({urlRoot: "
site.com:8080/recordcontrol.js"});

This way I would use Apache to server static files and setup Node.js for 
doing DB operations, which are the most resource consuming and that block 
the entire web server when under heavy load.

What are your thoughts.

-- 
-- 
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