Cache miss stampedes

Ask Bjørn Hansen ask at develooper.com
Tue Jul 31 21:04:43 UTC 2007


On Jul 31, 2007, at 13:17, Kenner Stross wrote:

> I've been thinking about the question of cache miss stampedes and came
> up with an idea this morning that I wanted to run by the group.
>
> What if, for those items that were a real "cache miss stampede" risk
> (i.e., very-high request rate and expensive to recover from db), you
> randomly refetched from the db regardless of whether it was in the
> cache?  [....]

It really depends on your application.  Sometimes doing what you  
suggest works well, but often then figuring out how often to refetch  
is as much or more trouble as just having an out-of-band thing update  
the cache - and almost always much much less efficient.    If you  
have to do extra coding to make it work anyway, why make the user  
wait for it to execute?


   - ask

-- 
http://develooper.com/ - http://askask.com/




More information about the memcached mailing list