Sha256: 96354d91740a923f265e12310fc3449cc63a7cc314888867181e668bd05efaad

Contents?: true

Size: 349 Bytes

Versions: 8

Compression:

Stored size: 349 Bytes

Contents

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"


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
boardintel_frenzy_bunnies-0.0.17-java examples/feed.rb
boardintel_frenzy_bunnies-0.0.16 examples/feed.rb
boardintel_frenzy_bunnies-0.0.15 examples/feed.rb
boardintel_frenzy_bunnies-0.0.14 examples/feed.rb
boardintel_frenzy_bunnies-0.0.13 examples/feed.rb
boardintel_frenzy_bunnies-0.0.12 examples/feed.rb
boardintel_frenzy_bunnies-0.0.11 examples/feed.rb
boardintel_frenzy_bunnies-0.0.9 examples/feed.rb