Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/archan937/bugs_bunny
- Owner: archan937
- Created: 2012-01-18T23:18:26.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-25T14:28:09.000Z (almost 13 years ago)
- Last Synced: 2023-04-13T15:02:56.115Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 107 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
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 rabbitmqSee also: http://www.rabbitmq.com/install-homebrew.html
Install the required gems:
$ bundle installNote: Sinatra, Unicorn and Bunny will be installed
h2. Run the demo
Run the RabbitMQ server:
$ rabbitmq-serverRun the operator:
$ ruby operator.rbRun the Sinatra app:
$ unicorn -c config/unicorn.rbOpen the demo in your browser:
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.