-
1. Re: What is better for a JMS request/response pattern?
clebert.suconic Aug 14, 2008 1:44 PM (in response to theoverlord)I don't know your complete use case, but Temporary Queue is better.
Topic -> your message would probably be sent to other internal queues that don't need to know about your message. And besides selector has some performance implications.
So... temporaryQueue is your choice. -
2. Re: What is better for a JMS request/response pattern?
timfox Aug 14, 2008 2:07 PM (in response to theoverlord)How long is a piece of string?
-
3. Re: What is better for a JMS request/response pattern?
theoverlord Aug 14, 2008 3:50 PM (in response to theoverlord)The request is an object (not string) but it's not a huge object.
The reply on the hand can be pretty big with other embedded objects. -
4. Re: What is better for a JMS request/response pattern?
timfox Aug 16, 2008 11:19 AM (in response to theoverlord)"clebert.suconic@jboss.com" wrote:
I don't know your complete use case, but Temporary Queue is better.
Topic -> your message would probably be sent to other internal queues that don't need to know about your message. And besides selector has some performance implications.
So... temporaryQueue is your choice.
Topic subscription selectors are evaluated before the message gets to the subscription so they never go to any queues that don't need to know about your message.
Selector really only has performance problems on a queue, not a topic. -
5. Re: What is better for a JMS request/response pattern?
theoverlord Aug 16, 2008 2:24 PM (in response to theoverlord)So which one is better for high volume traffic ?
I've heard numerous discussions on this subject and some people believe that a topic with a message selector is better.
Here's what I think.
There's a performance penalty for creating/destroying temporary queues and each one created consumed resources.
With the topic approach, you just create it one (statically) and you're done.
There might be some performance hit because of the message selector but as Tim said, it's negligible.
So it appears on paper, that Topics with message selector is better.