# Asynchronous jobs in Rails

**URL:** <https://www.ruby-forum.com/t/asynchronous-jobs-in-rails/140108>\
**Category:** Rails\
**Created:** [June 10, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/asynchronous-jobs-in-rails/140108 "2008-06-10T23:32:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![procyon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@procyon](https://www.ruby-forum.com/u/procyon)\
**Post date:** [June 10, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/asynchronous-jobs-in-rails/140108/1 "2008-06-10T23:32:05Z")

</div>

Hi,

I have been researching about this for couple of days now. My rails  
application needs to send email notifications to large number of  
customers. Before sending the message, application customizes content  
for each recipient. The requirement compels me to call ActionMailer’s  
deliver method for each email address.

I would like to send notifications asynchronously. I looked into  
backgroundRB. I have been playing around with it for almost two days  
and I can’t get it working on cygwin. However, my main concern is the  
poor performance of backgroundRB for moderate or high scalability  
needs.

I also looked into Threads in ruby. Since rails is single threaded and  
especially ActiveRecord is not thread safe, I dropped that idea too.

What are the options generally used for asynchronous jobs in rails ?  
From google search I find only two options mentioned above. Please  
tell me your experience with either of them. Is there any other  
solution that I have overlooked ?

Thank you!
