Rails ActiveJob and Sneakers

A Rails (4.2) project has a RabbitMQ setup where background jobs are enqueued with bunny and consumed by non-ruby-rails worker processes. The goal here is to bring the workers into Rails project as ActiveJobs but keep using the RabbitMQ as the message broker. I have used sidekiq before and I’d love to use it instead but thought this would be a great exercise. Enter sneakers.

First thing to do is to tell Rails to use sneakers as background job processor by setting the configuration attribute.

Website