You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Kevin Burton <bu...@spinn3r.com> on 2014/10/15 07:37:06 UTC

speed of queue browsing to see if an item is already enqueued…

I have the need to check if a given item, with a specific key, is already
in the queue, or scheduled for future execution.

What’s the performance of this like?  Is it relativity efficient?  My
requirements for this aren’t very high… I may be doing maybe 1-5% of my
load with this type of query.

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>
<http://spinn3r.com>

Re: speed of queue browsing to see if an item is already enqueued…

Posted by Kevin Burton <bu...@spinn3r.com>.
ok.. that’s reasonable.  Thanks for the reply.. I think what I’ll do is
have some basic sanity assertions run periodically.

On Wed, Oct 15, 2014 at 12:51 AM, Gary Tully <ga...@gmail.com> wrote:

> It will depend on the queue depth b/c it is a linear search to find a
> match. But all messages will be in memory so it will be quick.
>  On 15 Oct 2014 06:37, "Kevin Burton" <bu...@spinn3r.com> wrote:
>
> > I have the need to check if a given item, with a specific key, is already
> > in the queue, or scheduled for future execution.
> >
> > What’s the performance of this like?  Is it relativity efficient?  My
> > requirements for this aren’t very high… I may be doing maybe 1-5% of my
> > load with this type of query.
> >
> > 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>
> > <http://spinn3r.com>
> >
>



-- 

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>
<http://spinn3r.com>

Re: speed of queue browsing to see if an item is already enqueued…

Posted by Gary Tully <ga...@gmail.com>.
It will depend on the queue depth b/c it is a linear search to find a
match. But all messages will be in memory so it will be quick.
 On 15 Oct 2014 06:37, "Kevin Burton" <bu...@spinn3r.com> wrote:

> I have the need to check if a given item, with a specific key, is already
> in the queue, or scheduled for future execution.
>
> What’s the performance of this like?  Is it relativity efficient?  My
> requirements for this aren’t very high… I may be doing maybe 1-5% of my
> load with this type of query.
>
> 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>
> <http://spinn3r.com>
>