[rabbitmq-discuss] Multithreading and rabbitmq-c
u2.storm at gmail.com
Thu Mar 15 13:57:07 GMT 2012
I some questions concerning multithreading and using multiple channels
within single connection.
Is structure amqp_connection_state_t is thread-safe?
Can I share connection between threads and at the same time
use separate channel for each thread in producer app? and in consumer app?
The second part of the question(about consumer) is needed to be explained.
When I looked at API, I didn't find any difficulties to use many
channels within single connection
in producer app, because each method (declare queue\exchange, bind,
publish & etc) has
But in consumer app, where it is needed to receive messages (or frames
as shown in example .c-files),
we have to call wait_for_single_frame method, which is lack of "channel"
Could you give an advice how to organize "multichannel" message fetch from
It is better to use separate connection for each thread and have no
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss