Sidekiq Example ======================== This example 'app' (it isn't really an app!) was built to go with a talk at the Lyon.rb meetup. The slides from that talk are on slideshare. http://www.slideshare.net/KurtSussman/lyonrb-12feb2014sidekiq Web apps should do high-resource tasks in the background, for such resources as memory, CPU, disk I/O, and network I/O. Some user requests may result in queueing a background task, such as * sending email * sending SMS * anything involving a call to an external API * long database queries * generating formatted reports There may also be recurring tasks like daily reports, purging old or inactive records from the database, or monthly billing. Those can be set up as cron jobs, but that requires updating yet another system when the intervals change, or another task needs to be added. This project accepts an email address and sends an email. We would like to schedule a followup email, if possible. Another page allows takes a URL and gets the page, storing the content in a text field. There is no background processing in the master branch, and sidekiq is used in the 'sidekiq' branch. You can see the difference between the two branches with $ git diff master sidekiq The doc/links.txt file contains a list of links to articles about installing, using, and testing sidekiq in Rails apps. Please send pull requests for new branches using other background processing frameworks. License: MIT
neophiliac/sidekiq-example
testbed for experimenting with sidekiq, built for Feb 2014 talk at Lyon.rb
Ruby