Skip to content

Files

Latest commit

majekJakub Stastny aka botanicus
and
Jakub Stastny aka botanicus
May 19, 2011
1bbec48 · May 19, 2011

History

History

ruby

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 19, 2011
May 3, 2011
May 3, 2011
May 3, 2011
May 3, 2011
May 3, 2011
May 3, 2011
May 3, 2011
May 3, 2011
May 3, 2011
May 3, 2011
May 18, 2011
May 18, 2011

Ruby code for RabbitMQ tutorials

Here you can find Ruby code examples from RabbitMQ tutorials.

Requirements

To run this code you need amqp gem version 0.8 (currently available as a prerelease version). This code won't work with earlier versions! You can install it via RubyGems thusly:

gem install amqp --pre

Code

Tutorial one: "Hello World!":

ruby send.rb
ruby receive.rb

Tutorial two: Work Queues:

ruby new_task.rb
ruby worker.rb

Tutorial three: Publish/Subscribe

ruby receive_logs.rb
ruby emit_log.rb

Tutorial four: Routing

ruby receive_logs_direct.rb
ruby emit_log_direct.rb

Tutorial five: Topics

ruby receive_logs_topic.rb
ruby emit_log_topic.rb

Tutorial six: RPC

ruby rpc_server.rb
ruby rpc_client.rb

To learn more, visit Ruby AMQP gem documentation site.