[rabbitmq-discuss] is sending thread safe?

Eugene Kirpichov ekirpichov at gmail.com
Mon Sep 26 13:55:30 BST 2011


Yes, you should. The documentation explicitly states that IModel is
not thread-safe.

On Mon, Sep 26, 2011 at 4:53 PM, Steven Taylor <taylste at gmail.com> wrote:
> Its a .net client.  I have an asynchronous sending requirement (I will queue
> these up via .Net), and a synchronous receive/subscribe.  Technically that's
> two threads.  So I wondered if a single Rabbit channel would crash if it
> tried to send and receive simultaneously.  Should I take the cautious
> approach?
>
> -Steven
>
> On 26 September 2011 13:43, Eugene Kirpichov <ekirpichov at gmail.com> wrote:
>>
>> Which language's client are you talking about?
>> .NET client is not thread safe, for example.
>>
>> On Mon, Sep 26, 2011 at 4:41 PM, Steven Taylor <taylste at gmail.com> wrote:
>> > Hi,
>> >
>> > just checking if sending in RabbitMQ is thread safe?
>> >
>> > Is it best to just open up a new channel if the instance needs to also
>> > consume?
>> >
>> > thanks,
>> > -Steven
>> > _______________________________________________
>> > rabbitmq-discuss mailing list
>> > rabbitmq-discuss at lists.rabbitmq.com
>> > https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>> >
>> >
>>
>>
>>
>> --
>> Eugene Kirpichov
>> Principal Engineer, Mirantis Inc. http://www.mirantis.com/
>> Editor, http://fprog.ru/
>
>



-- 
Eugene Kirpichov
Principal Engineer, Mirantis Inc. http://www.mirantis.com/
Editor, http://fprog.ru/


More information about the rabbitmq-discuss mailing list