Does anyone have any experience in using compression on their cached data? I understand that stackoverflow is internally using this method.
What are the pros and cons?
And are there any gotchyas?
Does anyone have any experience in using compression on their cached data? I understand that stackoverflow is internally using this method.
What are the pros and cons?
And are there any gotchyas?
you should try memcached. It's a distributed caching server that is easy to use and provides impressive compression capabilities.
Scott Hanselman just created a Session wrapper class that can zip items before putting them into your cache/session/whatever. You may want to take a look!
http://www.hanselman.com/blog/TheWeeklySourceCode35ZipCompressingASPNETSessionAndCacheState.aspx