Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Just need a little advice here if anyone can help. Currently i have nginx running on a virtual private server, i am looking into installing node.js so i can use AjaxIM (http://ajaxim.com/) , and installing memcached, apc, and varnish. The main page of the site will probably be updated around once an hour, and i plan on just using the default settings for each caching plugin, so I am wondering if all of these are going to work together. Also, does anyone have any experience with node.js querying a mysql database, and would i be saving myself some trouble by skipping some of these plugins and just using node.js for the sake of speed.

share|improve this question
1  
Badly written. Can you rephrase the question? It seems you have 2/3 questions bundled together. –  Anand Jeyahar May 14 '11 at 5:20
    
hahaha yeah you are right, sorry give me one second. –  mcbeav May 14 '11 at 5:22
add comment

1 Answer

APC is “Alternative PHP Cache”, so it’s not at all useful for Node.js applications.

Leaving out APC, then yes, all these work great together, but unless you have a lot of semi-static content, you are probably not going to benefit all that much from Varnish, so you might leave that out for starters.

There is a whole host of options for accessing MySQL from Node.js. I haven’t used any of them, but db-mysql looks promising. It's part of Node.js DB – you can find some examples there.

share|improve this answer
    
APC could be useful for Node.js in a way that it also acts as a data store that you can access. So if you have (a webserver with) PHP running with APC somewhere, you could fetch/store an object from APC with Node.js. –  Bart Jan 16 '13 at 10:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.