Can a RabbitMQ Queue Get "full"/overflow?

868 views
Skip to first unread message

Eric Feigenson

unread,
Jul 30, 2015, 11:32:50 AM7/30/15
to rabbitmq-users
I'm new to RabbitMQ, and was wondering: In the course of operation, can a queue get "full" or overflow? I haven't seen any mention of maximum queue sizes, or what happens if there's no room available in a queue that your publishing to (if that can even happen).

If a queue can get full, is there a way for a publisher/consumer to detect this?

Thanks!

-Eric

Michael Klishin

unread,
Jul 30, 2015, 11:37:57 AM7/30/15
to Eric Feigenson, rabbitmq-users
There is a fixed RAM cost per message but it can be eliminated with a plugin.

There are resource-driven alarms that lead to publisher throttling. See rabbitmq.com/alarms.html.

MK
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Derick Bailey

unread,
Jul 30, 2015, 11:41:46 AM7/30/15
to rabbitm...@googlegroups.com
oops - meant to post this to the group, not to eric directly. (see my post below)

also forgot to add that you can use a dead letter exchange for when messages exceed the limit: https://www.rabbitmq.com/dlx.html

  - Derick


From: Derick Bailey <derick...@gmail.com>
Reply: Derick Bailey <derick...@gmail.com>>
Date: July 30, 2015 at 10:38:59 AM
To: Eric Feigenson <eric.fe...@editshare.com>>
Subject:  Re: [rabbitmq-users] Can a RabbitMQ Queue Get "full"/overflow?

Hi Eric,

The default queue settings don't really have a limit on the number of messages. It has more to do with the size of memory and / or hard drive space on the server.

you can set a a queue limit to create a limit, though. this is the maximum number of messages (or bytes) allowed in a queue. when the limit is reached, old messages a dropped to make room for the new messages. see https://www.rabbitmq.com/maxlength.html

  - Derick
Reply all
Reply to author
Forward
0 new messages