[rabbitmq-discuss] fanout exchange that does not keep messages

Brian Whitman brian at echonest.com
Mon Jul 20 16:47:34 BST 2009

Hi, I am trying to implement this (python code):

Which is a simple fanout exchange that any # of listeners can bind to with a
random queue name. My goal is to have the messages sent to the exchange but
not stick around in any way. If there are no queues bound to the exchange,
the messages should disappear. If there are listeners, the messages should
get sent out but not stay in the broker.

This is not what I'm seeing: running the broker for a few minutes with a few
listeners registered I have:

~/rabbitmq-server/scripts# ./rabbitmqctl list_queues name mode messages
messages_ready messages_unacknowledged durable
Listing queues ...
logger_d179b888-753c-11de-b258-0023dfde57d8 mixed 46847 46847 0 false
logger_a0856c74-753f-11de-b4dd-0022413719b3 mixed 17946 17946 0 false
logger_6c317904-7530-11de-996e-0023dfde57d8 mixed 79776 79776 0 false
logger mixed 301503 301503 0 false

Note that logger is the producer's "writer" queue. The logger_UUID() ones
are the consumers/listeners.

I am concerned about this because over the weekend the broker crashed
(not sure why yet, but I assume it had something to do with probably
~50m messages sitting in the exchange.) How
can I have messages be completely transient?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090720/f17cccbc/attachment.htm 

More information about the rabbitmq-discuss mailing list