Question

I'm currently using Lighttpd on a VPS. Before that it was nginx, but I came back to Lighttpd because I needed CGI.

Apache's HTTPD is mainstream. All documentations include examples for Apache and most modules are only available for Apache.

Is the effort to use something different from Apache really worth it?

Was it helpful?

Solution

I wouldn't consider it as premature optimization. Those two webservers are good products and strong in static content. Just because Apache is widely used, doesn't mean other products are just 'optimization'. In my experience lighttpd and nginx are easy enough to configure and you can use fcgi bindings for most programming languages.

You should consider the functionality you need and pick a server which offers those, possibly the one which uses less resources which most likely won't be Apache.

OTHER TIPS

Is the effort to use something different from Apache really worth it?

It all depends on your needs: if you have less than a few dozen concurrent users (and don't plan to see that number grow any time soon) then this is just a matter of taste.

But if you are concerned about costs because your application is aimed at scaling with the load then using the most efficient server will divide your costs by up to several orders of magnitude.

This is why having the choice is great!

A very good test tool is weighttp (same syntax as ApacheBench but faster and... multi-threaded - the necessary condition to test SMP servers that scale on multi-Core CPUs).

That depends on your needs. I use nginx when it does what I need, which it usually does. Apache supports to many things that I don't often use. It's nice to use only what's needed.

Yes, if you need something like 10k concurrent connections, you have a chance with LigtHTTPd but not with apache I think.

If it's worth switching while developing, I'm not sure. Probably use the webserver you know best for developing and optimize it later.

If you're running Rails, using Lighttpd is premature deoptimization. :) So it all depends on what you need. Your IT folks, if/once you have them, will thank you for using apache if you can.

It really depends on your set of requirements. Yes, premature optimization is evil, but to be honest I don't really see how this can be it.

You would have a certain set of requirements from this webserver - maybe something to do with how easily it's installed? Portability? Featureset? etc. that dictate most of the decision for you.

I would say, don't worry about premature optimization with regards to which web server you choose - rather, objectively look at what you want it to be and what you want it to do, then make your decision from there and build your solution.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top