Great presentation on the concepts and practicalities of caching, (not really on specific code)
Download full thing here:
http://tinyurl.com/cacheme
Some key points.
Caching is Important. Very Important:

We might want to look at SQUID or VARNISH caching (httpd caching in front of servers)
Consider lighttpd for image serving. Remove the load from CF boxes
Consider the "Small Increment graph" - this is key. By even putting caching at levels of seconds or minutes, you can achieve dramatic decreases in server strain.
Try Cheating!
Put all local info in cookie or similar, and serve that to the user to give the impression of instantaneous updates, but only do the work later when you have resources available.

Shea spoke to Mike (the Terracotta guy) at the end - think that ehcache might be something useful for our entire site. (It's free, flexible, works with CF8 and is if we need, expandable to a more capable Enterprise version)
ReplyDelete