I know that there are many libraries that implement AMQP support in python. However, I need a library that will allow me to publish AMQP in a synchronous style, because it will be used from a WSGI application, so the usual asynchronous style of interacting with a queue broker should be bit out of place there.
Other parts of the system use pika to support AMQP, but it is asynchronous, and I would prefer not to use it, even if there is a kind of โblockingโ connection there.
Of course, if all else fails, you can maintain a Pika event loop for the WSGI process. Another problem is that I found a couple of nasty (IMO) errors in the current stable version of Pika, and I would rather use something else.
Repeat:
- I need to do basic.publish (with support for โconfirmโ so that I know when the message is not really published)
- Synchronously
- To rabbitmq (obviously, pure AMQP can also work)
- In a WSGI application for python
source share