On 11/29/2012 05:41 AM, Rajesh Khan wrote:
I have something like this in my C++ code due to certain reasons.And wanted
to know if messages are sent this way and its effect on the broker

     sender.send(message);
     connection__->close();
     return true;

If thousands of messages are sent every second in the above method what
would be the affect on the broker. Any suggestions ?

For an explicit close like that, the client will wait until the sent message is received by the broker before closing the connection.

Opening a connection and going through the AMQP 0-10 handshake is quite involved and can take some time. So in general opening and closing a connection for every message is something I would avoid if at all possible.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to