`
san_yun
  • 浏览: 2599290 次
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

ActiveMQ中topic和queue的区别

    博客分类:
  • jms
 
阅读更多

官方网站已经解释得很清楚了:

http://activemq.apache.org/how-does-a-queue-compare-to-a-topic.html

 

 

Topics

In JMS a Topic implements publish and subscribe semantics. When you publish a message it goes to all the subscribers who are interested - so zero to many subscribers will receive a copy of the message. Only subscribers who had an active subscription at the time the broker receives the message will get a copy of the message.

Queues

A JMS Queue implements load balancer semantics. A single message will be received by exactly one consumer. If there are no consumers available at the time the message is sent it will be kept until a consumer is available that can process the message. If a consumer receives a message and does not acknowledge it before closing then the message will be redelivered to another consumer. A queue can have many consumers with messages load balanced across the available consumers.

So Queues implement a reliable load balancer in JMS.

分享到:
评论

相关推荐

    Apache ActiveMQ Queue Topic 详解

    Apache ActiveMQ Queue Topic 详解 教程 加入代码解释说明

    springboot2整合activemq的demo内含queue消息和topic消息

    springboot2整合activemq的demo内含queue消息和topic消息,需要使用者修改application.yml的连接地址信息就可以了,端口号是默认的可以不用修改

    Queue与Topic的比较

    Queue与Topic的比较,学习JMS和activemq必须看的资料之一

    一个jms activemq Topic 消息实例

    一个jms activemq Topic 消息实例 关于jms JMS 是接口,相当于jdbc ,要真正使用它需要某些厂商进行实现 ,即jms provider 常见的jms provider 有 ActiveMQ JBoss 社区所研发的 HornetQ (在jboss6 中默认即可以...

    spring集成activemq演示queue和topic 持久化

    本人在学习activemq,然后 测试完成的demo, 包含了queue,topic,持久化到mysql,订阅模式,包好用

    Springboot整合ActiveMQ(Queue和Topic两种模式)

    文章目录ActiveMQ简介1、ActiveMQ简介2、ActiveMQ下载SpringBoot整合ActiveMQ1、新建SpringBoot项目2、项目结构3、相关配置信息4、ActiveMQ配置类Queue队列模式1、队列生产者2、队列消费者3、测试效果Topic模式1、...

    ActiveMQ的队列、topic模式

    ActiveMQ的两种消息模式的例子,queue和topic,注释很详细,告诉你每步做什么,非springboot整合

    详解Springboot整合ActiveMQ(Queue和Topic两种模式)

    主要介绍了详解Springboot整合ActiveMQ(Queue和Topic两种模式),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

    springboot activemq

    springboot+activemq 搭建 topic与 queue 并存实现方案

    activeMQ JMS 3种创建方式

    activeMQ JMS 3种创建方式 公共方式 QUEUE TOPIC

    Springboot-activeMQ

    ActiveMQ是Apache下的开源项目,完全支持JMS1.1和J2EE1.4规范的JMS ...activemq的queue和topic  JMS中定义了两种消息模型:  点对点(point to point, queue)  发布/订阅(publish/subscribe,topic)。

    springboot整合activemq案例

    springboot整合activemq案例,queue,topic两种模式 定时运行和controller请求运行两种方式

    java springboot整合activemq工程

    #默认情况下activemq提供的是queue模式 true是可以使用topic,false是仅使用queue模式 spring.jms.pub-sub-domain: true # 设置连接的activemq服务器 spring.activemq.broker-url=failover:(tcp://10.0.1.227:61616,...

    activemq-web-console-5.11.2

    1.一个是admin,用来显示和管理所有的queue、topic、connection等等。 2.一个是demo,有一些使用jms和activemq的简单例子。 3.还有一个fileserver,用来支持通过activemq发送文件时的中转服务器。blob message时配置...

    spring-boot-activemq-demo

    spring boot activemq集成示例,包含queue和topic消息的发送、接收,连接池的支持。

    Spring+ActiveMQ实现,基于Maven

    基于Maven的Spring+ActiveMQ,比较贴合实际生产,只实现了Topic,queue改点配置就行了

    apache-activemq-5.15.0-bin.tar.7z

    MQ是消息中间件,是一种在分布式系统中应用程序借以传递消息的媒介,常用的有ActiveMQ,RabbitMQ,kafka。ActiveMQ是Apache下的开源项目,完全支持JMS1.1和J2EE1.4规范的JMS Provider实现。 特点: 1、支持多种...

    ActiveMQ与spring整合封装

    ActiveMQ与spring整合进行封装,实现全注解开发,并且支持topic与queue两种模式无缝切换,对外提供统一的接口调用,简化操作。对连接池进行优化,容器实例动态生成。

    activemq+spring实例

    spring 中使用activemq,queue 、topic的同步接收,异步接收的实例,使用的是maven的项目工程!

    JAVA编程之Spring boot-activeMQ示例

    本项目基于Spring boot这一平台,整合流行的开源消息队列中间件ActiveMQ,实现一个向ActiveMQ添加和读取消息的功能。分别实现生产者-消费者模式和发布-订阅模式,作为java编程发送消息和消费消息的基础示例。 源码...

Global site tag (gtag.js) - Google Analytics