How to produce/send messages from multiple threads
I would like to use txAMQP as a client AMQP library from my multithreaded web application. All I have to do is send a message to RabbitMQ, no processing/
My idea was to create separete thread and inside it:
* setup connection and channels
* run twisted reactor with installSignalHa
* monitor for lost connections and reconnect (subject on its own)
Then from other application threads:
* call chan.basic_
Also, do you know how to monitor for lost connections and reconnect when necessary?
Using twisted for my entire app is not an option.
I know there are other libraries (py-amqplib and qpid-python), but I want to use this one.