Please refer https://www.rabbitmq.com/download.html
bundle exec ruby direct.rb
bundle exec ruby fanout.rb
bundle exec ruby topic.rb
# run the producer
bundle exec ruby color_producer.rb
# open another terminal and run
bundle exec ruby color_worker.rb
# open the third terminal and run
bundle exec ruby color_worker.rb
# run the producer
bundle exec ruby color_producer.rb
# open another terminal and run
bundle exec ruby lazy_color_worker.rb
# open the third terminal and run
bundle exec ruby lazy_color_worker_binder.rb bind
# or
bundle exec ruby lazy_color_worker_binder.rb unbind