$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
It's a blog.
In: Computers|Cool Links|Ideas|Performance|Programming|Rants & Raves
8 May 2008I’ve alluded before to using gzip compression on webserver. HTML is very compressible, so servers moving tremendous amounts of text/HTML would see a major reduction in bandwidth. (Images and such would not see much of a benefit, as they’re already compressed.)
As an example, I downloaded the main page of Wikipedia, retrieving only the HTML and none of the supporting elements (graphics, stylesheets, external JavaScript). It’s 53,190 bytes. (This, frankly, isn’t a lot.) After running it through “gzip -9″ (strongest compression), it’s 13,512 bytes, just shy of a 75% reduction in size.
There are a few problems with gzip, though:
But I’ve come across something interesting… A Hardware gzip Compression Card, apparently capable of handling 3 Gbits/second. I can’t find it for sale anywhere, nor a price mentioned, but I think it would be interesting to set up a sort of squid proxy that would sit between clients and the back-end servers, seamlessly compressing outgoing content to save bandwidth.
Related posts:
2 Responses to Web Compression
Matt’s Blog » Building an Improvised CDN
June 10th, 2008 at 4:46 pm
[...] The other option, and one that may actually be preferable, is to just run the software normally, but stick it behind a cache. This might not be an instant fix, as I’m guessing the generated pages are tagged to not allow caching, but that can be fixed. (Aside: people seem to love setting huge expiry times for cached data, like having it cached for an hour. The main page here caches data for 30 seconds, which means that, worst case, the backend would be handling two pages a minute. Although if there were a network involved, I might bump it up or add a way to selectively purge pages from the cache.) squid is the most commonly-used one, but I’ve also heard interesting things about varnish, which was tailor-made for this purpose and is supposed to be a lot more efficient. There’s also pound, which seems interesting, but doesn’t cache on its own. varnish doesn’t yet support gzip compression of pages, which I think would be a major boost in throughput. (Although at the cost of server resources, of course… Unless you could get it working with a hardware gzip card!) [...]
Erik
January 23rd, 2012 at 5:38 pm
Hey Matt!
I came across your blog after seeing you had posted a link to our older website. I know this is a four year old blog post, but our hardware GZIP cards can now be found here:
http://www.aha.com/index.php/products-2/data-compression/gzip/.
Oh, and we do 10 Gbits/second now :).