activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <>
Subject Re: Message dispatching from cache
Date Fri, 11 Dec 2015 14:07:05 GMT
The cache and the cursor are the same thing.  When your consumers are
keeping up, all messages are in memory and priority dispatch works
correctly.  When consumers fall behind, eventually some messages will be in
memory while others will be on disk waiting for space to be available in
memory.  Once a message gets into memory, priority will be respected, but
while it's on disk it will be ignored.  This means you may dispatch
lower-priority messages from memory (but the highest priority messages that
are in memory) while higher-priority messages languish on disk waiting to
be read into memory (and then immediately dispatched once they are).

On Dec 10, 2015 8:52 AM, "Jose MarĂ­a Zaragoza" <> wrote:

> Hello:
> I'm trying to understand how message priority works in AMQ 5.10
> I'm reading
> and I don't understand this sentence
> "Since the message cursors (and client side) implement strict ordering
> of priorities, it's possible to observe strict priority ordering if
> message dispatching can happen from the cache and not have to hit the
> disk (i.e., your consumers are fast enough to keep up with producers)"
> Is there a message cursor processing messages from cache ? Or cache is
> implemented as a message cursor ?
> I thought that when "your consumers are fast enough to keep up with
> producers" , messages were moved directly into a dispatch queue for
> the consumer
> Thanks and regards

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message