activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Inconsistent TTL behavior on Topics
Date Thu, 27 Jan 2011 09:31:42 GMT
Hi Martin,

topic messages are dispatched from the broker very fast if there are
consumer there. There's no persistence going on if you're not using durable
subscribers. That's why when you have a consumer, the messages with be
probably dispatched from the broker.

In case there are no consumers and you set your ttl to anything then 1ms,
the message will not be expired on the first check (when it comes to the
broker) and since there's no consumers it will be just discarded (as it's
topic).

Regards
-- 
Dejan Bosanac
-----------------
FuseSource - The experts in open source integration and messaging.
Email: dejanb@fusesource.com
Web: http://fusesource.com
Twitter:  http://twitter.com/dejanb
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Thu, Jan 27, 2011 at 2:24 AM, mgfarme <martin@mgfsoftware.co.uk> wrote:

>
> I am seeing very inconsistent behavior when setting the TTL on topic
> messages. Queues seem to work fine.
>
> I start the broker (both version 5.3 and 5.4 exhibit the same issue), and
> then use the web admin console to create a topic, and send a message to it.
> I notice that I get the best behavior when I set the TTL to 1 (I believe
> this field is milliseconds) - The majority of the time, the message goes to
> the DLQ. However, for any other value, it's hit or miss. Sometimes it goes
> to the DLQ, others it doesn't (you can see the DLQ count not increasing, as
> the Messaages enqueued count increases)....
>
> I first noticed this when I set the individualDLQstrategy for topics and
> queues to send messages (programmatically) to their own DLQ topic - I
> noticed I wasn't seeing ANY TOPIC messages timing out. I then noticed the
> same behavior when done via the web admin console - and it's easier to
> demonstrate.
>
> I also tried persistent and non-persistent messages.
>
> So, am I fundamentally misunderstanding something, or is there a bug in the
> expiring of topic based messages ?
>
> Thanks
>
> Martin
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Inconsistent-TTL-behavior-on-Topics-tp3239146p3239146.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

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