Apache or nginx

jdunhin

Active member
Registered
Joined
Feb 27, 2013
Messages
72
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
17
Points
0
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.
 
Older Threads
Replies
0
Views
2,234
Replies
1
Views
2,575
Replies
0
Views
2,215
S
Replies
11
Views
5,980
Replies
9
Views
4,766
Newer Threads
Replies
7
Views
7,444
Replies
0
Views
2,030
Replies
1
Views
3,041
OWF
Replies
9
Views
5,939
Replies
0
Views
2,501
Latest Threads
Replies
1
Views
26
Replies
0
Views
189
Replies
1
Views
40
Replies
2
Views
83
Similar Threads

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

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