Files
Hermann/scripts/send-one-big-message
admin-tea a3ee1d4cd7
ci-tests/Hermann/pipeline/head There was a failure building this commit
Added this initial testing html publish
2021-06-15 20:01:22 +02:00

26 lines
461 B
Ruby
Executable File

#!/usr/bin/env ruby
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
require 'rubygems'
require 'hermann/producer'
topic = 'topic'
brokers = ARGV.first
puts ">> Producer#new('#{topic}', '#{brokers}')"
p = Hermann::Producer.new(topic, brokers)
message = ('b' * 4096) + 'a'
puts ">> Producer#push('#{message}') (#{message.size} bytes)"
r = p.push(message)
puts Time.now
puts "#{r}>> #{r.value(3)}"
puts Time.now
puts "..exiting"