3 ms·
I'd suggest that most people who switched to nginx from Apache did, in fact, notice a huge decrease in load. Otherwise why would anyone make the switch and stay
by tlack 16y ago
I'd suggest that most people who switched to nginx from Apache did, in fact, notice a huge decrease in load. Otherwise why would anyone make the switch and stay with nginx? It's a risky proposition.
Personal anecdote: on a very popular blog that I run, experienced massive performance boost switching from Apache to Lighttpd, and load dropped as well.
- SwellJoe 16y agoThat would surprise me greatly. I've seen Apache side-by-side with nginx. In a similar configuration, Apache isn't much slower, and doesn't use a "huge" amount of additional resources. Yes, it's bigger per-process by a few MB (which admittedly does add up, in very high load environments), and it's a little slower, but unless you've configured Apache in a dramatically different way (such as running mod_php in Apache vs. an fcgi configuration under nginx) the differences simply aren't "huge" or "massive". So, is nginx faster and smaller, in general, than Apache? Yes. But, by a "huge" or "massive" margin? Unlikely. Unless, of course, you've got a pathological configuration or one that is tuned for other priorities (like security in a shared hosting environment, for example, or other areas where Apache clearly outclasses nginx in terms of capabilities). I'm just saying it's not a big deal that Apache is as popular as it is, and if anyone is suggesting changing web servers as the first, second, third, or fourth area to tackle when performance is an issue, it's probably bad advice. The application or the database are almost certainly where your attention should go first.