No commit activity in last 3 years
No release in over 3 years
Compress resque job payloads!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 10.0
>= 0
 Project Readme

Resque::Compressible

Transparently compress and decompress resque job payloads! Useful if you want to minimize memory footprint in redis or minimize net IO.

Installation

Add this line to your application's Gemfile:

gem 'resque-compressible'

And then execute:

$ bundle

Or install it yourself as:

$ gem install resque-compressible

Usage

Extend it in your resque job after your perform method.

class Jobs::Blah
  @queue = :data_pipeline

  def self.perform large_data_1, large_data_2, large_data_3, large_data_4
    puts "large_data_1 is #{large_data_1}"
    puts "large_data_2 is #{large_data_2}"
    puts "large_data_3 is #{large_data_3}"
    puts "large_data_4 is #{large_data_4}"
  end

  extend Resque::Plugins::Compressible
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/resque-compressible.