cancel
Showing results for 
Search instead for 
Did you mean: 

Apache vs Nginx

Apache vs Nginx

Hi Everyone, I am developing a multivendor platform using Magento 2.3 community edition and marketplace extension. I am not sure if I should use an apache or nginx web server ? Are are any particular benefits of choosing one over the other ? Thanks. 

3 REPLIES 3

Re: Apache vs Nginx

@aryaascien55b1 

 

Nginx is now becoming a dominant web server and hosts around 75% of all the web servers worldwide. Unlike Apache, it follows an event-driven approach and can handle multiple requests within a single processing thread. It is because of this reason the Nginx web server is widely used as a reverse proxy and load balancer to manage the high-traffic.

 

Why to go with Nginx:

 

Even though Apache and Nginx both give a tough fight, there are certain factors which makes Nginx more influential and dominant over Apache. They are,

  • Event-driven approach
  • Lightweight and faster architecture
  • Performs 2.5 times faster in fetching static content
  • Speed and quick request interpretation (essential to e-commerce sites)
  • Advanced media streaming modules

Further, Nginx can manage thousands of concurrent requests and owns the capacity to power 50% of the traffic sites on the web.

 

Here you can find more

https://magento.stackexchange.com/questions/175438/nginx-or-apache-for-magento-2-x

https://blog.magemint.com/2019/11/22/know-the-differences-which-stands-out-apache-or-nginx-for-magen...

https://www.aitoc.com/blog/nginx-vs-apache-vs-litespeed-for-magento-2/

 

I will recommend Nginx. 

Manish Mittal
https://www.manishmittal.com/

Re: Apache vs Nginx

Nginx is better than Apache due to Nginx has since surpassed Apache in popularity due to its lightweight footprint and its ability to scale easily on minimal hardware. Nginx excels at serving static content quickly, has its own robust module system, and can proxy dynamic requests off to other software as needed.

 

For large scale nginx is better.

Re: Apache vs Nginx

Hello aryaascien55b1,

 

I hope you are doing well!

 

You can check the particular benefits of both web servers from below. It will help you in choosing one over the other,

 

The main difference between Apache and NGINX lies in their design architecture. Apache uses a process-driven approach and creates a new thread for each request. At the same time, NGINX uses an event-driven architecture to handle multiple requests within one thread.

 

The HTTP or Apache server is an open-source, cross-platform web server known as “httpd.” NGINX is more popular than Apache Web Server now due to various factors. Apache Servers static content using the file base method while Nginx servers static resources without using PHP.

 

Apache Supports all Unix systems, including Linux & BSD also fully supports MS-Windows, while Nginx almost supports Unix OS and Windows partially. Nginx has a lightweight structure and much faster architecture than that of Apache.

 

I hope this information will be helpful for you in choosing the web server.

 

------------------------

Regards,

Rex M