qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Stewart <David.Stew...@igindex.co.uk>
Subject RE: SubscriptionManager performance problem.
Date Thu, 25 Feb 2010 16:57:32 GMT
I should have mentioned this is in the C++ API for qpid 0.5,

-----Original Message-----
From: David Stewart
Sent: 25 February 2010 16:51
To: dev@qpid.apache.org
Cc: users@qpid.apache.org
Subject: SubscriptionManager performance problem.

Hi all,
we are running a bridge between our old middleware and qpid system which at startup queries
the existing middleware for the number of broadcast groups it knows about. It is a pricing
system so there are ~20000.

The bridge creates a fanout exchange for each broadcast group, creates a queue and binds it
to the exchange. All this takes ~75 seconds for 20000. Not a problem.

When we add a SubscriptionManager.subscribe() to the loop we get though 1000 requests in ~3
I have created an example below which exhibits the problem. The question are we using the
SubscriptionManager incorrectly? Is there a better way for us to achieve the result we require?

for (int i=0; i < 20000; ++i) {
        std::stringstream ss; ss << "listener" << i;

        // Try and declare the exchange. Will succeed even if it already exists.



        oSubscriptionManager.subscribe(*this, ss.str()); }


The information contained in this email is strictly confidential and for the use of the addressee
only, unless otherwise indicated. If you are not the intended recipient, please do not read,
copy, use or disclose to others this message or any attachment. Please also notify the sender
by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email
and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business
of this company shall be understood as neither given nor endorsed by it. IG Index Ltd is a
company registered in England and Wales under number 01190902. VAT registration number 761
2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised
and regulated by the Financial Services Authority. FSA Register number 114059.

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

View raw message