Comparison of Apache and Nginx

  • LAMP is an open source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the relational database management system and PHP/Perl as the programming language
  • Lamp stack consist of four layers as mentioned above and that stack can be build on any opensource operation system
  • The major benefit on lamp stack is that it has a number of modules, which gives more functionality
  • The draw back of LAMP is that it slows down under heavy load
  • A limit has been set to the resources and if the limit reached, the other connections will be refused
  • The utilization of memory and CPU is high when the load is increasing
  • The support and community always place an important role and Apache community is very large and can get help with respect to any issue

  • LEMP is an also the open source Web development platform that uses Linux as the operating system, Nginx (Engine-X) as the Web server, MySQL as the relational database management system and PHP/Perl as the programming language
  • The major benefit of Nginx over Apache is that it is faster and have low memory consumption technology
  • It allows higher HTTP request and perform well and also very efficient for static web pages
  • It doesn’t create new processes for each request though it has worker process and each worker can handle thousands of cur-current connections
  • Nginx is asynchronous and have the capability of non-blocking, event-driven connection handling algorithm
  • The utilization of CPU and RAM is not affected under the heavy load though it is single threaded
  • Nginx also used as a reverse proxy and through that we can obtain security and better performance in our network
Overall both web servers Apache and Nginx are the powerful,flexible and result oriented. 50 % of the internet is working on these web severs. It all depend on the nature of the web service we want, if we want faster result with low hardware usage; most preferable is Ngnix server and if we want more functionality and availability of modules with multiple programming languages Apache is the best option. So, it really depends on need to obtain your objectives

Leave a Reply

Your email address will not be published. Required fields are marked *