[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-users
Subject:    Scheduled Messages and Paging
From:       Wayne Robinson <wayne.robinson () gmail ! com>
Date:       2020-07-22 0:38:58
Message-ID: CAB7Ta_ptF1LP=RGHiKACGSdkW2_bHK40Minkm3wjLbikWfj3uQ () mail ! gmail ! com
[Download RAW message or body]


Hi

It seems that only one ScheduledDeliveryRunnable is created per timestamp
and then a RefScheduled added to that runnable for each scheduled message.

However, is there any guidance available on how Artemis handles paging of
scheduled messages?

Are these moved in and out of the runnables as pages are moved in and out
of memory?

If there's a scheduled message that's in a page that's currently not loaded
into memory, can the queue still activate it?

As a (contrived) example:

Queue has a page size equivalent to 1000 messages and can hold 1 page
active in memory at a time.

Queue currently has 5000 *active* items and is being consumed at a rate of
1000/second.

Messages 5001 - 7000 are scheduled to run in 1 month's time

Message 7001 is scheduled to run in the current interval.


Will Artemis see that 7001st message immediately after processing message
5000… or will it have to wait until the messages 5001-7000 are processed
before 7001 gets paged into memory?

Cheers
Wayne


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic