Your SlideShare is downloading. ×
  • Like
Resque
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply
Published

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,171
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
14
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Resque
  • 2. Asynchronous Processing
  • 3. Two popular options • DelayedJob • Resque
  • 4. DelayedJob • http://github.com/tobi/delayed_job • ActiveRecord based • BatchImporter.new(Shop.find(1)).send_later (:import_massive_csv, massive_csv)
  • 5. Resque • http://github.com/defunkt/resque • Redis based • Battle tested at GitHub
  • 6. Usage class Converter @queue = :conversion def self.perform(id) ... end end Resque.enqueue(Converter, 123)
  • 7. Invoking QUEUE=:conversion rake environment resque:work
  • 8. Sample App • http://github.com/joerichsen/resque_demo
  • 9. Misc • MySQL has gone away - http://axonflux.com/resque-to-the-rescue-but-a-gotcha-dont-forget • Deployment and Capistrano • Priorities • Namespaces
  • 10. Mailers specifically • http://github.com/zapnap/resque_mailer • http://github.com/andersondias/ delayed_job_mailer