Skip to content

Files

Latest commit

6a815b7 · Jun 10, 2018

History

History
This branch is 773 commits behind rabbitmq/rabbitmq-tutorials:main.

ruby

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 10, 2018
Feb 19, 2018
Feb 19, 2018
Feb 19, 2018
Feb 19, 2018
Feb 19, 2018
Feb 19, 2018
Feb 19, 2018
Feb 19, 2018
Feb 19, 2018
Feb 19, 2018
Feb 19, 2018
Mar 31, 2018

Ruby code for RabbitMQ tutorials

Here you can find Ruby code examples from RabbitMQ tutorials.

Requirements

These tutorials require Bunny to be installed.

To install it with RubyGems:

gem install bunny --version ">= 2.10.0"

Bunny supports Ruby 2.2 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.