發表文章

目前顯示的是 5月 11, 2014的文章

Nginx Vs Apache: Nginx Basic Architecture and Scalability

圖片
Nginx Vs Apache: Nginx Basic Architecture and Scalability The need for serving large number of concurrent requests is raising every day. The prediction of C10K problem (i.e 10,000 concurrent clients) started the research on web server architecture which could solve this problem. As a result Nginx architecture was developed. This article explains on a very high-level how Nginx works to solve the scalability problem, along with high level differences between Nginx and Apache webserver. Increasing Web Server Scalability The web server scalability problem can be solved either by increasing the hardware capabilities (i.e memory, CPU, etc ) or by improving the web server architecture. The goal here is to improve the web server architecture too optimize the hardware resources, which will eventually lead to a cost effective architecture. For solving this problem, In 2002 Igor Sysoev started developing a web server written in C, which had an efficient thread management. Nginx was ...