How to produce/send messages from multiple threads
Hello,
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?
Regards,
Tvrtko
P.S.
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.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- txAMQP Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Tvrtko
- Solved:
- Last query:
- Last reply: