[rabbitmq-discuss] Queue item limits
Emile Joubert
emile at rabbitmq.com
Wed Jan 25 11:31:09 GMT 2012
Hi,
On 25/01/12 07:11, Simone Busoli wrote:
> There is no such feature in the broker, perhaps if you explain what you
> are trying to do there may be other ways.
>
> On Jan 25, 2012 1:43 AM, "Codevally" <codevally at gmail.com
> <mailto:codevally at gmail.com>> wrote:
>
> This is something like restrict the size of the queue. Please help.
>
> On Jan 25, 11:38 am, Codevally <codeva... at gmail.com
> <mailto:codeva... at gmail.com>> wrote:
> > Hi
> >
> > I have a declared queue and want to know how can I limit the
> number of
> > items in that queue. For example, the define queue is "sms_gateway"
> > and that queue can maximum allow to receive 500 items.
As Simone says, there is no way of limiting the number of messages in a
queue. The closest approximation is to limit the time that messages may
spend in a queue.
http://www.rabbitmq.com/extensions.html#lifetimes
-Emile
More information about the rabbitmq-discuss
mailing list