Skip to content

Instantly share code, notes, and snippets.

@claudijd
Created October 26, 2018 01:14
Show Gist options
  • Select an option

  • Save claudijd/1519bc6d7bd6379b2cce1327735693ce to your computer and use it in GitHub Desktop.

Select an option

Save claudijd/1519bc6d7bd6379b2cce1327735693ce to your computer and use it in GitHub Desktop.
amqp "lambda"
require "bunny"
# Start a communication session with RabbitMQ
conn = Bunny.new
conn.start
# open a channel
ch = conn.create_channel
# declare a queue
q = ch.queue("test1")
q.publish("foo.example.com")
conn.stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment