resque_redis_composite
resque_redis_composite copied to clipboard
When you want to split your Resque queues across multiple instances of Redis
trafficstars
config = { "default" => "localhost:6379", "a_queue_of_write_heavy_stuff" => "otherbox:6379" }
Resque.redis = Resque::RedisComposite.new(config) Resque.push("email_sending", "to" => "[email protected]") # to localhost:6379 Resque.push("a_queue_of_write_heavy_stuff", 23239430449) # to otherbox:6379