Web-server – which is the best webserver for serving static content and load balancing

load balancingweb-server

I was wondering which is the best webserver that would be able to server static content with the highest performance, and also is able to perform load balancing.

I looked into apache, lighttpd, nginx, and cherokee, but I am not sure which one would be my best option as a load balancer.

Thanks,

Best Answer

As others have mentioned, its not advisable to use a webserver as a load balancer when you could use a load balancer as a load balancer :)

Here's another option for you - since its just static files, have you considered using a content delivery network (CDN) like Amazon CloudFront?

Their core function is to loadbalance and serve static files with the highest performance possibly across different geographic locations.

If that's not an option for you, +1 for either Nginx or Lighttpd plus HAProxy.