[rabbitmq-discuss] receive no-delay msg from publisher

Simon MacMullen simon at rabbitmq.com
Mon Oct 22 10:33:09 BST 2012

On 22/10/12 09:37, cyj wrote:
> i encounter a problem that when i received one msg,i have to proceed a long
> time ,so when i received the next msg,i got a delay msg published by the
> publisher that i don't need.
> i need the no-delay msg so if the msg published too fast, some of them
> should be abandoned.
> can anybody give me some advice?

Set a message TTL on your queue(s):


> i try the immediate flag,but it do not work,beacuse i think  when my program
> is running, there   is a consumer connected to  the exchange.

Hmm, that should work. But the 'immediate' flag is going away:


Cheers, Simon

Simon MacMullen
RabbitMQ, VMware

More information about the rabbitmq-discuss mailing list