Skip to content

Instantly share code, notes, and snippets.

@dylanegan
Created October 4, 2009 10:05
Show Gist options
  • Save dylanegan/201288 to your computer and use it in GitHub Desktop.
Save dylanegan/201288 to your computer and use it in GitHub Desktop.
rabbit_stew do |stew|
stew.fanout :bar, :queue => 'foo'
stew.direct :baz, :queue => 'wee'
stew.topic :wah do |topic|
topic.key "faz.*", :queue => 'wee'
end
queue :foo do
puts "im the foo queue. I handle the bar fanout for now."
end
queue :wee do
puts "im the wee queue. I handle a direct baz and the routing key faz.* for the topic wah"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment