Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Unicorn served Sinatra demo app which uses Bunny to broadcast AMQP messages to every worker
Ruby
branch: master

This branch is 2 commits behind archan937:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
lib
public
views
.gitignore
Gemfile
Gemfile.lock
README.textile
app.rb
config.ru
operator.rb

README.textile

Bugs Bunny Demo

A Unicorn served Sinatra application which uses Bunny (a Ruby AMQP 0.9.1 client) to broadcast messages to every Unicorn worker.

This requires an AMQP message server, such as RabbitMQ, in order to publish and receive messages.

Installation

Install RabbitMQ:

  $ brew install rabbitmq

See also: http://www.rabbitmq.com/install-homebrew.html

Install the required gems:

  $ bundle install

Note: Sinatra, Unicorn and Bunny will be installed

Run the demo

Run the RabbitMQ server:

  $ rabbitmq-server

Run the operator:

  $ ruby operator.rb

Run the Sinatra app:

  $ unicorn -c config/unicorn.rb

Open the demo in your browser:

http://localhost:8080

Enjoy and spread the word! :D

Contact me

For remarks and requests please mail me at paul.engel@holder.nl.

http://holder.nlhttp://codehero.eshttp://gettopup.comhttp://github.com/archan937http://twitter.com/archan937

Credits

The Bunny gem is originally created by Chris Duncan (@celldee).

This demo uses Unicorn, Sinatra, RabbitMQ, Bunny and Ruby AMQP.

Something went wrong with that request. Please try again.