<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I am using Puka client [1] in order to send messages with guaranteed
delivery using publisher confirms.<br>
<br>
Trying to send 200.000 messages I see that waiting for the confirms,
takes a lot of time.<br>
<br>
To be more specific:<br>
<br>
promises = []<br>
t0 = time.time()<br>
for i in range(0,200000):<br>
promise = client.basic_publish(exchange='test_exchange',
routing_key='test',<br>
body="Hello world!")<br>
promises.append(promise)<br>
<br>
t1 = time.time()<br>
<big> client.wait(promises)</big><br>
t2 = time.time()<br>
promise = client.close()<br>
client.wait(promise)<br>
<br>
In this example t1-t0 is arround 9s while t2-t1 is more than 100
seconds!!<br>
Increasing the number of messages results in even worse performance.<br>
<br>
Can anyone explain this behavior ? Is there a more effective way to use
publisher confirms ?<br>
<br>
Chris<br>
<br>
<br>
[1]: <a class="moz-txt-link-freetext"
href="https://github.com/majek/puka">https://github.com/majek/puka</a>
</body>
</html>