launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #02859
Re: Memcached API
If I can suggest some heuristics about things people find useful to
cache (based on squid experience ;)).
things that are:
- very high volume
- expensive to calculate
- very large [as a proxy for 'expensive'
tend to be the things that show up as 'we want to cache this'
The win on a cached object is roughly costsavings * frequency, where the
costsavings is the total cost (e.g. time, db load, whatever) to get the
full object minus the cost of checking that it is fresh (and thus can be
served from the cache).
So anything that we serve a lot of may be a big win even if the marginal
benefit is extremely low. Likewise things that are really expensive to
generate are likely worth caching even at only moderate request & hit
rates.
Things that are cheap to calculate and low volume should never get
cached.
-Rob
Attachment:
signature.asc
Description: This is a digitally signed message part
References