JMS Topic vs Queue - Intent
Posted
by
Sandeep Jindal
on Stack Overflow
See other posts from Stack Overflow
or by Sandeep Jindal
Published on 2013-07-02T15:17:35Z
Indexed on
2013/07/02
17:05 UTC
Read the original article
Hit count: 417
I am trying to understand on the design requirements for using Queue, and could not find this question (with answer).
My understanding: Queue means one-to-one. Thus it would be used in a special case (if not rare, very few cases) when a designer is sure that the message would be intended for only one consumer.
But even in those cases, I may want to use Topic (just to be future safe). The only extra case I would have to do is to make (each) subscription durable. Or, I special situations, I would use bridging / dispatcher mechanism.
Give above, I would always (or in most cases) want to publish to a topic. Subscriber can be either durable topic(s) or dispatched queue(s).
Please let me know what I am missing here or I am missing the original intent?
© Stack Overflow or respective owner