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

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

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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group at

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 nodejs+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupnodejs @
postedMar 11, '13 at 7:53p
activeMar 11, '13 at 7:53p

1 user in discussion

Ivan quintero: 1 post



site design / logo © 2022 Grokbase