Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
frenzy_bunnies / examples / feed.rb
Size: Mime:
require 'rubygems'
require 'march_hare'




connection = MarchHare.connect(:host => 'localhost')
channel = connection.create_channel
channel.prefetch = 10

exchange = channel.exchange('frenzy_bunnies', :type => :direct, :durable => true)



100_000.times do |i|
  exchange.publish("hello world! #{i}", :routing_key => 'new.feeds')
end
puts "done"