Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Ron C.
Apache vs nginx

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 too much RAM which significantly degrades performance. Also, they degrade much faster on less powerful hardware or in a resource-restricted environment such as a VPS.

That, I believe, was the big gotchya. The front-end is running under a VPS-- Virtual Private Server. I think it just hit a point where the election-fueled load overwhelmed the code path in Linux-VServer and grinded to a halt at the kernel level.

As for ease, yes, frighteningly easy. Apache was kind of a hack, using it to reverse proxy the heavy backend services--when Apache is primarily a web server-- to make it fill this role took quite a bit of configuration. And it's just messy as the quote illustrates. nginx is mostly a reverse proxy, it's designed primarily for what we need, an interface to several heavy backend web services, passive load balancing, and light static serving. I haven't even read the documentation, just copy-pasta FAQ examples and tweaked for our specific configuration. Now time to hit the books!

122 posted on 11/05/2012 3:16:36 PM PST by John Robinson
[ Post Reply | Private Reply | To 116 | View Replies ]


To: John Robinson

Smoke’n fast here in central FL, thanks.


125 posted on 11/05/2012 3:25:36 PM PST by DocRock (All they that TAKE the sword shall perish with the sword. Matthew 26:52 Gun grabbers beware.)
[ Post Reply | Private Reply | To 122 | View Replies ]

To: John Robinson
Thanks John!!

What a difference! LOL - love "Now time to hit the books!"

Maybe there's more to be had - tinker successfully! ~grin~ R

128 posted on 11/05/2012 3:27:14 PM PST by Ron C.
[ Post Reply | Private Reply | To 122 | View Replies ]

To: John Robinson

Easy for you to say!

Is that even in English?

Thank you ... Thank you


132 posted on 11/05/2012 3:36:13 PM PST by 3D-JOY (If there were no United States Armed Forces there would be no United States of America)
[ Post Reply | Private Reply | To 122 | View Replies ]

To: John Robinson

That’s exactly what I thought it was!:)


134 posted on 11/05/2012 3:46:09 PM PST by Randy Larsen (Aim small, Miss small.)
[ Post Reply | Private Reply | To 122 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson