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/05/29 22:41:12 UTC

overhead of delayed messages? what data structure does it use? would 1M kill it?

What data structure does ActiveMQ use for delayed messages.

I think this is exactly what I need, but it could be easy for us to
accidentally enqueue 1M delayed messages.

and if our throughput falls of in that situation then the total overall
system throughput will fail.

One idea is to have a whole separate queue for items that are delayed.
 This way items that can be schedule right away, don't have to be inserted
into a queue with 1M items.

-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
Skype: *burtonator*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>
<http://spinn3r.com>
War is peace. Freedom is slavery. Ignorance is strength. Corporations are
people.

Re: overhead of delayed messages? what data structure does it use? would 1M kill it?

Posted by Christian Posta <ch...@gmail.com>.
Could you use a throttling EIP?
http://camel.apache.org/throttler.html

Delayed messages are handled by ActiveMQ scheduling plugin:
http://activemq.apache.org/delay-and-schedule-message-delivery.html


On Thu, May 29, 2014 at 1:41 PM, Kevin Burton <bu...@spinn3r.com> wrote:

> What data structure does ActiveMQ use for delayed messages.
>
> I think this is exactly what I need, but it could be easy for us to
> accidentally enqueue 1M delayed messages.
>
> and if our throughput falls of in that situation then the total overall
> system throughput will fail.
>
> One idea is to have a whole separate queue for items that are delayed.
>  This way items that can be schedule right away, don't have to be inserted
> into a queue with 1M items.
>
> --
>
> Founder/CEO Spinn3r.com
> Location: *San Francisco, CA*
> Skype: *burtonator*
> blog: http://burtonator.wordpress.com
> … or check out my Google+ profile
> <https://plus.google.com/102718274791889610666/posts>
> <http://spinn3r.com>
> War is peace. Freedom is slavery. Ignorance is strength. Corporations are
> people.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta