rabbitmq-tutorials/ruby
2016-08-15 09:27:35 +03:00
..
emit_log_direct.rb Now that Bunny::Connection#close performs clean shutdowns, these can go 2013-07-29 00:55:41 +04:00
emit_log_topic.rb Now that Bunny::Connection#close performs clean shutdowns, these can go 2013-07-29 00:55:41 +04:00
emit_log.rb Now that Bunny::Connection#close performs clean shutdowns, these can go 2013-07-29 00:55:41 +04:00
new_task.rb Now that Bunny::Connection#close performs clean shutdowns, these can go 2013-07-29 00:55:41 +04:00
README.md Update Bunny instructions for 2.5.1 2016-08-15 09:27:35 +03:00
receive_logs_direct.rb Disable automatic connection recovery for Bunny tutorials 2013-07-25 09:57:39 +04:00
receive_logs_topic.rb Disable automatic connection recovery for Bunny tutorials 2013-07-25 09:57:39 +04:00
receive_logs.rb Disable automatic connection recovery for Bunny tutorials 2013-07-25 09:57:39 +04:00
receive.rb Disable automatic connection recovery for Bunny tutorials 2013-07-25 09:57:39 +04:00
rpc_client.rb Use condition variable to be notified of RPC responses 2013-08-26 01:45:05 +04:00
rpc_server.rb add missing puts 2014-06-04 21:31:05 -04:00
send.rb Now that Bunny::Connection#close performs clean shutdowns, these can go 2013-07-29 00:55:41 +04:00
worker.rb Make the code match the narrative 2013-08-04 19:03:26 +04:00

Ruby code for RabbitMQ tutorials

Here you can find Ruby code examples from RabbitMQ tutorials.

Requirements

To run this code you need Bunny.

You can install it via RubyGems:

gem install bunny --version ">= 2.5.1"

Bunny supports Ruby 2.0 and later versions.

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 Bunny documentation site.