metaduck
28Out/090

sweepy – Distributed and scalable file caching expiration in Rails

sweepyFollowin up on my post about Rails cache on a distributed environment, I recently published a Rails plugin called sweepy.

Sweepy allows you to expire file-based cache (page cache and fragment cache) on Rails on multiple boxes.

If you don’t want or don’t need to setup memcached, and just want to simply use Rails page and / or fragment caching, sweepy automatically handles page expiration.

You can use the Rails expire_page and expire_cache API, no need to change existing code.

…with the bonus of sweepy supporting a regexp as a expire_page argument.

Really, what is sweepy?

sweepy is two things:

  1. A daemon running on each box
  2. A Rails plugin to expire cache

sweepy is scalable

sweepy uses UDP broadcasts for cache cleaning. This way you can add as many machines as you want, and cache expiration times will remain the same.

Check out sweepy at github

About Pedro Teixeira

Pedro Teixeira is a former Enterprise Java Beans technical project manager for Clarity Europe (BES Tech Ventures). On 2004 he founded a services company ( http://berro.pt ), focused on the tourism industry throughout 2005-2008, briefly worked for http://www.expedita.com, shifted to product development on 2007, rebuilt http://netmadeira.com on 2009 for ZON Madeira. On early 2010 he started freelance work for Avallain, an e-Learning company strongly focused on delivering multi-media learning content and learning community expericences.
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.