Girl Friday

Simple and efficient background processing for Ruby!


Add girl_friday to your application's Gemfile:

gem 'girl_friday'

Then you declare your application's required background processors in config/initializers/girl_friday.rb:

EMAIL_QUEUE = do |msg|
IMAGE_QUEUE = do |msg|

In your controller action or model, you can call push(msg):

EMAIL_QUEUE.push(:email =>, :name =>

The msg parameter to push is just a Hash whose contents are completely up to you.

More Detail

Please see the girl_friday wiki for more detail and advanced options and tuning. You'll find details on queue persistence with Redis, usage with Heroku, implementing clean shutdown, querying runtime metrics and so much more!

The term Man Friday has become an idiom, still in mainstream usage, to describe an especially faithful servant or one's best servant or right-hand man. The female equivalent is Girl Friday. The title of the movie His Girl Friday alludes to it and may have popularized it.


Mike Perham @mperham

Site design by Chad Seeger ( @cs44 )