nameko-cacheback(Smart caching for nameko refresh cached items asynchronously)

Smart caching for nameko using evenlet to refresh cached items
asynchronously

Cacheback is an extensible caching library that refreshes stale cache items
asynchronously using nameko EventDispatcher. The key idea being that it’s
better to serve a stale item (and populate the cache asynchronously) than
block the response process in order to populate the cache synchronously.

A corollary of this technique is that cache stampedes can be easily
avoided, avoiding sudden surges of expensive reads when cached items
becomes stale.

nameko-cacheback provides a decorator for simple usage.

reference https://github.com/codeinthehole/django-cacheback

https://pypi.python.org/pypi/nameko-cacheback

···

On Tuesday, November 15, 2016 at 5:52:23 PM UTC+8, zh gauss wrote:

Smart caching for nameko using evenlet to refresh cached items
asynchronously

Cacheback is an extensible caching library that refreshes stale cache
items asynchronously using nameko EventDispatcher. The key idea being
that it’s better to serve a stale item (and populate the cache
asynchronously) than block the response process in order to populate the
cache synchronously.

A corollary of this technique is that cache stampedes can be easily
avoided, avoiding sudden surges of expensive reads when cached items
becomes stale.

nameko-cacheback provides a decorator for simple usage.

reference https://github.com/codeinthehole/django-cacheback

Nice. Thanks for sharing :slight_smile:

···

On Tuesday, November 15, 2016 at 10:37:13 AM UTC, zh gauss wrote:

https://pypi.python.org/pypi/nameko-cacheback

On Tuesday, November 15, 2016 at 5:52:23 PM UTC+8, zh gauss wrote:

Smart caching for nameko using evenlet to refresh cached items
asynchronously

Cacheback is an extensible caching library that refreshes stale cache
items asynchronously using nameko EventDispatcher. The key idea being
that it’s better to serve a stale item (and populate the cache
asynchronously) than block the response process in order to populate the
cache synchronously.

A corollary of this technique is that cache stampedes can be easily
avoided, avoiding sudden surges of expensive reads when cached items
becomes stale.

nameko-cacheback provides a decorator for simple usage.

reference https://github.com/codeinthehole/django-cacheback