[openamq-dev] Fwd: Ruby QPID libraries
Gordon Sim
gsim at redhat.com
Wed Apr 30 11:08:52 CEST 2008
Carl Bourne wrote:
> Do you have to create a new content object that contains the message
> contents before you can publish it? The following works fairly well up
> to about 1000 messages but then seriously slows down when you start to
> go above that.
On my laptop sending (and receiving) 1000 msgs takes ~4secs, 5000 takes
~20secs and 10000 takes ~30secs which shows a steady (though admittedly
rather low) throughput as the count increases. Are you seeing the
throughput drop off for counts higher than 1000? Or is it just the low
throughput in general?
> Is it not possible to create the content (at least the
> text part of it) as the message is published?
>
> 10000.times {|i|
> content = Qpid::Content.new({}, "Test Message# #{i}")
> ch.basic_publish(:routing_key => "test-queue", :content => content )}
I'm not quite sure I follow you. However there are persons more
knowledgeable than I am about this client and ruby in general (and
indeed most things!) on the qpid list. Can I suggest you ask this
question there (and also perhaps pursue any perf issues as above) to
avoid hijacking the openamq list?
[qpid-users at incubator.apache.org/qpid-users-subscribe at incubator.apache.org]
More information about the openamq-dev
mailing list