[rabbitmq-discuss] Exchange-queue binding ?

Brian Granger ellisonbg.net at gmail.com
Fri Nov 16 17:33:05 GMT 2007

> On 16 Nov 2007, at 02:35, Brian Granger wrote:
> > The publisher needs to be able to send messages to arbirary subsets of
> > the priviate queues.
> --snip--
> >
> > The problem with this is that the publisher sends the message to the
> > exchange twice (or N times to send to N private queues). I need a way
> > of publishing to an exchange only one time per message and then have
> > the exchange route the message to the appropriate subset of private
> > queues.  I should also mention that the subsets are very dynamic and
> > completely determined by the publisher.
> >
> This seems very producer driven. Can I ask why the producer needs to
> know about subsets of consumers - are context specific packets of work
> being divided up and farmed out to known consumers who maintain state
> across the consumption of different messages?

Yes, this is exactly the case.  The consumers maintain a large amount
of state, and particular message are sent to particular consumers to
change that state.

> >
> > I suppose this also might be possible with header exchange types, but
> > it is not obvious how to do that.
> It does sound like you're trying to achieve predicate based routing
> which would be suited to the header exchange type.  Unfortunately  the
> header exchange is not yet implemented in rabbit.

Ahh, I didn't know that the header exchange wasn't implemented yet.
What about doing this using a topic exchange?



> Ben
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss

More information about the rabbitmq-discuss mailing list