Sneakers

High Performance Backround Jobs. On Ruby.

Version Downloads

It's as simple as 1-2-3.

1. Install
$ gem install sneakers
2. Make a Worker
class TitleScraper
  include Sneakers::Worker
  from_queue 'downloads'

  def work(msg)
    doc = Nokogiri::HTML(open(msg))
    worker_trace "FOUND <#{doc.css('title').text}>"
    ack!
  end
end
3. Run
$ foreman start
# or require 'sneakers/tasks', and:
# $ WORKERS=TitleScraper rake sneakers:run

Our Community Blog — Learn, Build, Repeat.