Drop new received messages when a queue is full

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Drop new received messages when a queue is full

bloodBaron
According to http://www.rabbitmq.com/maxlength.html,
"Messages will be dropped or dead-lettered from the front of the queue to make room for new messages once the limit is reached."

Is there a way to drop/reject the new messages instead of dropping the old messages on the queue?

Thx!

Tom
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drop new received messages when a queue is full

Michael Klishin-2
 On 30 July 2014 at 23:54:42, bloodBaron ([hidden email]) wrote:
> > Is there a way to drop/reject the new messages instead of dropping  
> the old
> messages on the queue?

There is no.
--  
MK  

Staff Software Engineer, Pivotal/RabbitMQ
_______________________________________________
rabbitmq-discuss mailing list has moved to https://groups.google.com/forum/#!forum/rabbitmq-users,
please subscribe to the new list!

[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drop new received messages when a queue is full

bloodBaron
Michael Klishin-2 wrote
 On 30 July 2014 at 23:54:42, bloodBaron ([hidden email]) wrote:
> > Is there a way to drop/reject the new messages instead of dropping  
> the old
> messages on the queue?

There is no.
--  
MK  

Staff Software Engineer, Pivotal/RabbitMQ
_______________________________________________
rabbitmq-discuss mailing list has moved to https://groups.google.com/forum/#!forum/rabbitmq-users,
please subscribe to the new list!

[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
So that also means it's impossible to unbind a queue from an exchange when the queue is full, isn't it?

Thanks a lot!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Drop new received messages when a queue is full

Alvaro Videla-2
Hi,

On Wed, Jul 30, 2014 at 10:26 PM, bloodBaron <[hidden email]> wrote:
Michael Klishin-2 wrote
>  On 30 July 2014 at 23:54:42, bloodBaron (

> bloodbaronofvizkopa@

> ) wrote:
>> > Is there a way to drop/reject the new messages instead of dropping
>> the old
>> messages on the queue?

 
Queue contents and bindings are not related. You can bind/unbind queues with messages, or bind/unbind empty queues as well. 

If you want to drop new messages, then use a per-queue-TTL  = 0, see: https://www.rabbitmq.com/blog/2014/01/23/preventing-unbounded-buffers-with-rabbitmq/#noqueueingatall

Cheers,

-Alvaro

_______________________________________________
rabbitmq-discuss mailing list has moved to https://groups.google.com/forum/#!forum/rabbitmq-users,
please subscribe to the new list!

[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Loading...