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

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Resque

1,198

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,198
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
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

×