[rabbitmq-discuss] Question about configuration of queues

Ben Hood 0x6e6562 at gmail.com
Tue Nov 4 23:29:12 GMT 2008


William,

On Tue, Nov 4, 2008 at 10:37 PM, Beene, William R.
<beenewilliamr at gmail.com> wrote:
> Because then the producers would have to know about all of the consumers.

That's a fair point - in general one would want to decouple production
from consumption.

It sounds to me that you are looking for some kind of trigger that is
based on queue depth - like you were maintaining a buffet at a
restaurant. Maybe you can elaborate on your actual use case so that we
can put this into context.

Should your application be contingent on a specific depth, you may
consider polling depth on a per-queue basis and conditionally starting
consumption.

If it is OTOH dependent on a batch of work being pre-initialized, then
you could consider sending a poison pill that would signify the
completion of the production phase.

HTH,

Ben




More information about the rabbitmq-discuss mailing list