[rabbitmq-discuss] EventingBasicConsumer is still experimentals? (.NET client)
simone.busoli at gmail.com
Sun Nov 20 20:14:00 GMT 2011
Sorry to hijack the discussion but I always thought that this class was
very unsafe to use, although the implementation is stable.
As you point out the events are fired on the connection thread, which
should not block. Now I am expecting that if there's a place in an
application using RabbitMQ where there is a chance of blocking it is indeed
callbacks on message deliveries, rather than the other events exposed by
IModel or IConnection, therefore I would avoid using EventingBasicConsumer
unless there's a reason to use it.
On Sun, Nov 20, 2011 at 11:01, Matthias Radestock <matthias at rabbitmq.com>wrote:
> On 19/11/11 23:09, Jason J. W. Williams wrote:
>> I see that that EventingBasicConsumer is still marked experimental.
>> Is that true or is it safe to use for examples in our book?
> It is probably safe to use.
> We're trying to find an equivalent to the event loop in Pika that
>> allows multiple consumption loops to be active non-blocking at the
>> same time.
> EventingBasicConsumer is blocking, i.e. it invokes the event handlers in
> the connection thread.
> Can you post the pika code you want to emulate?
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.**rabbitmq.com<rabbitmq-discuss at lists.rabbitmq.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss