Project

hopper

0.0
No commit activity in last 3 years
No release in over 3 years
A framework for task execution written around bunny
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 1
~> 10.0

Runtime

 Project Readme

Build Status Dependency Status Coverage Status Code Climate Gem Version License Badges

Hopper

A framework for task execution written around bunny.

Usable on its own, or as part of Baler.

Examples

A Publisher:

  channel = Hopper::Channel.new

  queue = Hopper::Queue.new("hopper-stresstest")

  publisher = queue.publisher(channel)
  
  publisher.publish(m)

A Listener:

 channel = Hopper::Channel.new

 queue = Hopper::Queue.new("hopper-stresstest")
  
 listener = queue.listener(channel)

 listener.listen do |m|
          
  unless valid(m)
    m.reject
    next
  end
  
  # do some stuff
  
  m.acknowledge
end

TODO

  • Add support for pluggable serialization mechanisms (MsgPack, JSON, etc.)

API Documentation

See RubyDoc

Contributors

See Contributing for details.

License

©2015 Ed Carrel. Released under the MIT License.

See License for details.