Thursday, July 14, 2011

Methos to reduce the load webserver by Caching content : using Lighttpd

If you ever have developed a website which has tasted a bit of success and has reached to serious problem such as overload  server . We try  a Methos  to resolve the problem by Caching content in Lighttpd with mod_cache and mod_proxy :


Mod_cache provides a shared web cache for mod_proxy and uses a configuration similar to Squid Cache. mod_cache has several key benefits:




  • Simple : mod_cache sets lighttpd flags between request handling stages. The request is then handled by mod_staticfile, mod_proxy, or other modules.

  • Robust :  mod_cache stores caches to the filesystem rather than to memory in order to avoid memory leaks/exhaustion.

  • Fast :  Lighttpd uses the Sendfile system call, which writes the file to the network interface directly.

  • Powerful : mod_cache can be used in conjunction with other lighttpd plugins (except mod_deflate and mod_secdownload). For example; using mod_compress to compress cached files, using mod_access/mod_trigger_b4_dl to implement anti-hot-link restrictions, or using mod_flv_streaming to do native flv file streaming.


With the shared web cache, mod_proxy is able to deliver content from the local cache without having to re-download bulky files, thus simultaneously increasing the speed from the user's perspective while reducing bandwidth up-stream of the server


Read more http://blogmee.info/index.php/methos-to-reduce-the-load-webserver-by-caching-content-using-lighttpd/

No comments:

Post a Comment