[rabbitmq-discuss] Using Pika Python client library with BlockingConnections and publisher-confirms - Does it work?
Ask Solem
ask at rabbitmq.com
Mon Feb 6 12:40:10 GMT 2012
On 6 Feb 2012, at 11:59, Marek Majkowski wrote:
> <shameless plug>
> It's rather simple using Puka:
>
> client = puka.Client("amqp://localhost/")
>
> promise = client.connect()
> client.wait(promise)
>
> promise = client.basic_publish(exchange='', routing_key='test',
> body="Hello world!")
> client.wait(promise)
>
> https://github.com/majek/puka/blob/master/examples/send.py
> </shameless plug>
But that doesn't use publisher confirms?
It may take a long time for a confirmation to arrive, so blocking while
waiting for a publisher confirm is likely to be very inefficient. But if that
is sufferable then this would also be possible using kombu/pika.
More information about the rabbitmq-discuss
mailing list