Do prefetched messages count towards the queue size?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Do prefetched messages count towards the queue size?

Kevin Burton
If I have a queue with 100 messages, and a consumer with with prefetch=100,
and the consumer prefetches the entire queue, and the messages aren’t ack’d
yet, what’s the queue size?

I would think it would remain at 100..

Kevin

--

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>
Reply | Threaded
Open this post in threaded view
|

Re: Do prefetched messages count towards the queue size?

Tim Bain
Yes, that's the intended behavior.  Queue size = # of unacknowledged
messages.
On May 17, 2015 12:19 PM, "Kevin Burton" <[hidden email]> wrote:

> If I have a queue with 100 messages, and a consumer with with prefetch=100,
> and the consumer prefetches the entire queue, and the messages aren’t ack’d
> yet, what’s the queue size?
>
> I would think it would remain at 100..
>
> Kevin
>
> --
>
> Founder/CEO Spinn3r.com
> Location: *San Francisco, CA*
> blog: http://burtonator.wordpress.com
> … or check out my Google+ profile
> <https://plus.google.com/102718274791889610666/posts>
>
Reply | Threaded
Open this post in threaded view
|

Re: Do prefetched messages count towards the queue size?

Tim Bain
More accurately, queue size = # of unacknowledged messages + # of
undispatched (pending) messages.
On May 17, 2015 10:41 PM, "Tim Bain" <[hidden email]> wrote:

> Yes, that's the intended behavior.  Queue size = # of unacknowledged
> messages.
> On May 17, 2015 12:19 PM, "Kevin Burton" <[hidden email]> wrote:
>
>> If I have a queue with 100 messages, and a consumer with with
>> prefetch=100,
>> and the consumer prefetches the entire queue, and the messages aren’t
>> ack’d
>> yet, what’s the queue size?
>>
>> I would think it would remain at 100..
>>
>> Kevin
>>
>> --
>>
>> Founder/CEO Spinn3r.com
>> Location: *San Francisco, CA*
>> blog: http://burtonator.wordpress.com
>> … or check out my Google+ profile
>> <https://plus.google.com/102718274791889610666/posts>
>>
>