[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: discarding consumer messages.
timfox
do-not-reply at jboss.com
Tue Feb 3 09:31:56 EST 2009
"gozilla" wrote : Shouldn't we use the TTL for that ?
|
| Say, put a TTL of the lentgh of validity period for the stock price.
|
| That way, if the consumer is slow, old (outdated) messages are discarded, leaving only the fresh ones in the queue.
|
| FranÃÂçois
Sure, nothing is stopping you setting a TTL on the message, that will work too, if that's what you want.
However the semantics of this are slightly different as Andy mentioned.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206565#4206565
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206565
More information about the jboss-dev-forums
mailing list