Kinetic

Kinetic is an AMQP worker framework designed in vein of microframeworks such as sinatra. Its goal is to provide an easy way to configure and run AMQP consumers in order to reduce developer overhead when working with AMQP. Kinetic follows the master/worker convention used in Unicorn, and its prefork code is mostly based on that of Unicorn's.

Installation

gem install kinetic

Basic Usage

Kinetic follows a pattern similar to that of Sinatra, so most of the conventions should be recognizable.

Example: simple_worker.rb

set :host, 'localhost'
set :port, 5678

on 'message' do |message|
    puts "Received #{message}"
end