mperham/sidekiq — pull request #717 by tomfarm (2013-02-19 21:45:13+00:00)
Title: Sidekiq nested/embedded inside the web process

Mike, this is by far not a complete pull request but rather a question if this is on the right track to run sidekiq inside the web process like sucker_punch (which is great btw).

Sidekiq uses Celluloid (Threads) so instead of blocking the main Thread and sleeping Sinatra/Rails can happily serve requests.

An example is in examples/inline.rb
Sidekiq::Nested.run loads config/sidekiq.yml
The "nested" flag activates the inline mode

Why
----
Sometimes it might be easier to run sidekiq like this if an app is running on heroku for qa or staging and there's no need to have a worker farm running (and paying money for idle workers).

Why not
-----
There are no tests. Not a single one. Nada.