Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

What are the benefits and drawbacks of using:

Nginx + PHP + MySQL

VS

Node.js + MySQL

PS. Don't ask what I'm building, i just want a general idea/concept between the two setups.

I don't ask about the differences, I ask about the benefits/drawbacks of using either setups. Like, what are the benefits of buying a BMW M6 = It's fast, cool, sexy. Drawbacks = It's expensive, vulgar, small trunk. Something like that.

share|improve this question

closed as not constructive by Rik Heywood, Will Apr 26 at 13:36

As it currently stands, this question is not a good fit for our Q&A; format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

2 Answers

Differences between "Nginx + PHP + MySQL" (1) and "Node.js + MySQL" (2):

  • In (2) you don't use nginx (captain obvious to the rescue). Nginx is a must-have software. You need something to serve static files in node.js (please don't use express por that purpose because you're slowing down the event loop) and send some feedback to the users when the node.js process is down.

  • The benefits/drawbacks of using "php+mysql" and "node+mysql" are the same than "php" and "node.js". Google it or ask specific questions.

share|improve this answer

One will be in PHP.

The other will be in Node.js

There is nothing else very helpful anyone can tell you with the information you have given.

Performance, memory, CPU load etc will all highly depend on what you are doing and how well suited that task is to the language you are using.

share|improve this answer

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