Apache or nginx

Status
Not open for further replies.

jdunhin

New member
Joined
Feb 27, 2013
Messages
93
Points
0
Apache or nginx? It sound like nginx is taking over on the servers. Is it really faster?
 

CharlesByrd

Member
Joined
Feb 20, 2014
Messages
38
Points
8
Apache is a process-based server, while nginx is an event-based web server.
Nginx and Lighttpd are probably the two best-known asynchronous servers and Apache is undoubtedly the best known process-based server. The main advantage of the asynchronous approach is scalability. In a process-based server, each simultaneous connection requires a thread which incurs significant overhead. An asynchronous server, on the other hand, is event-driven and handles requests in a single (or at least, very few) threads.
While a process-based server can often perform on par with an asynchronous server under light loads, under heavier loads they usually consume far more RAM which significantly degrades performance. Also, they degrade much faster on less powerful hardware or in a resource-restricted environment such as a VPS.
Pulling numbers from thin air for illustrative purposes, serving 10,000 simultaneous connections would probably only cause Nginx to use a few megabytes of RAM whereas Apache would probably consume hundreds of megabytes.
 
Status
Not open for further replies.
Older threads
Replies
0
Views
1,866
Replies
1
Views
2,228
Replies
4
Views
2,817
S
Replies
11
Views
6,374
Replies
8
Views
4,350
Newer threads
Replies
0
Views
2,494
Replies
7
Views
6,562
Replies
4
Views
2,579
Replies
3
Views
5,518
Replies
3
Views
2,429
Latest threads
Replies
1
Views
80
Replies
1
Views
175
Replies
4
Views
383
Replies
11
Views
524
Replies
2
Views
228
Recommended threads
Replies
0
Views
2,451
Replies
8
Views
5,185
Replies
10
Views
10,933
Similar threads

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top