Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/archan937/bugs_bunny

A Unicorn served Sinatra demo app which uses Bunny to broadcast AMQP messages to every worker
https://github.com/archan937/bugs_bunny

Last synced: about 2 months ago
JSON representation

A Unicorn served Sinatra demo app which uses Bunny to broadcast AMQP messages to every worker

Awesome Lists containing this project

README

        

h1. 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.

h2. 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

h2. 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

h2. Contact me

For remarks and requests please mail me at "[email protected]":mailto:[email protected].

"http://holder.nl":http://holder.nl – "http://codehero.es":http://codehero.es – "http://gettopup.com":http://gettopup.com – "http://github.com/archan937":http://github.com/archan937 – "http://twitter.com/archan937":http://twitter.com/archan937

h2. Credits

The Bunny gem is originally created by Chris Duncan ("@celldee":http://twitter.com/celldee).

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