this post was submitted on 16 Jun 2023
17 points (100.0% liked)
Programming
13386 readers
2 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Why is nginx preferred over Apache these days? I believe nginx was originally preferred because Apache had scaling issues with its original forking concurrency model, but that was replaced a long time ago, so…why use nginx today?
Apache's httpd still comes to this day preconfigured to use the awful prefork config or of the box on Ubuntu, CentOS, debían etc. A lot of people literally don't even know that there's another option but they do know that nginx is far better than prefork.
That asside, there's also still pros and cons for both nginx and mpm_event. So to simply say "why use nginx apache also has event driven server configs now" is pretty naive because it's not like one is just inherently better than the other at everything.
That's why I'm entertaining the idea of an alternative in this post. Although it seems there are a lot of mixed opinions on this matter