I am using carrot gem for message publishing in ruby and my sample code is as follows :
Code :
require 'carrot'
q = Carrot.queue('testqueue', :durable => true)
q.publish("sample data")
Please can someone tell me how to publish the same data using a routing key ?
With my limited amount of knowledge about AMQP but my extraordinary abilities in using Google i found out that for using routing keys:
And that this is how you use carrot with the direct exchange: