JMS Topic vs Queues

前端 未结 9 2118
广开言路
广开言路 2020-12-04 04:48

I was wondering what is the difference between a JMS Queue and JMS Topic.

ActiveMQ page says

Topics

In JMS a Topic implements <

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 05:09

    TOPIC:: topic is one to many communication... (multipoint or publish/subscribe) EX:-imagine a publisher publishes the movie in the youtub then all its subscribers will gets notification.... QUEVE::queve is one-to-one communication ... Ex:-When publish a request for recharge it will go to only one qreciever ... always remember if request goto all qreceivers then multiple recharge happened so while developing analyze which is fit for a application

提交回复
热议问题