Skip to content

Instantly share code, notes, and snippets.

@zaeemarshad
zaeemarshad / consume.rb
Created May 10, 2022 23:15
RMQ consumer
#!/usr/bin/env/ruby
# frozen_string_literals: true
#
#
require 'bunny'
require 'pry'
require 'logger'
host = 'localhost'
vhost = '/'
@zaeemarshad
zaeemarshad / publish.rb
Last active May 10, 2022 23:14
Ruby RMQ publisher - supports publishing to multiple vhosts
#!/usr/bin/env ruby
# frozen_string_literal: true
#
require 'bunny'
require 'logger'
host = 'localhost'
queue = 'test1'
vhosts = ['/']
exchange = 'amq.topic'

Keybase proof

I hereby claim:

  • I am zaeemarshad on github.
  • I am zaeem (https://keybase.io/zaeem) on keybase.
  • I have a public key ASBb-2TZBDTNKkPujqTbKoOB9dPZ-si5a5f-4TQJuf8RIwo

To claim this, I am signing this object: