Links
BackgroundFu
Categories
BackgroundFu
If you are looking for a lighter alternative to BackgrounDRb, this plugin might suit your needs.
Vitals
| Home | http://trix.pl/blog/ruby-on-rails/running-long-background-tasks-in-ruby-on-rails-made-dead-simple |
|---|---|
| Repository | https://svn.trix.pl/public/background_fu |
| License | Rails' (MIT) |
| Tags |
background backgroundrb threads
|
| Rating | (66 votes) |
| Owner | Jacek Becela |
| Created | 9 December 2007 |
Comments
-
There's a severe limitation I mentioned in the home page comments: it's single process only. The Background module doesn't have any mean of sharing the jobs across processes : if you have a mongrel cluster, this doesn't work.
-
If you have more than one mongrel, you have to make sure your session stick to one mongrel. This functionality is provided by most proxies (HAProxy does this).
-
are there disadvantages to Thread.new { ... } that I don't know about? I would have just done that. ;)
-
I abandoned threads completely. BackgroundFu now relies on Kyle Maxwell's daemon_generator plugin (http://svn.kylemaxwell.com/rails_plugins/daemon_generator/trunk/README). Check BackgroundFu Readme (https://svn.trix.pl/public/background_fu/README) for details.
@steven: You might want to read my blog post (linked above).

