博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RabbitMQ核心概念和常规使用方式
阅读量:4316 次
发布时间:2019-06-06

本文共 980 字,大约阅读时间需要 3 分钟。

RabbitMQ中的几个核心概念

01、broker:消息队列的服务主机

02、vhost:虚拟主机,一个Broker可以有多个vhost,用于实现用户(权限)的分离

03、exchange:消息交换机,用于分发消息到队列

04、queue:消息队列的载体,每个消息都会被投入到一个或多个队列

05、binding:将Exchange与Queue按照RoutingKey规则进行绑定

06、routingKey:路由Key,Exchange根据RoutingKey进行消息分发

07、producer:消息生产者

08、consumer:消息消费者

09、connection:连接

10、channel:消息通道,每个Channel代表一个会话任务

 

常用方式

1、单个生产者发送消息单个消费者接收消息

http://www.rabbitmq.com/tutorials/tutorial-one-dotnet.html

2、Work queues 单个生产者发送消息多个消费者接收消息

http://www.rabbitmq.com/tutorials/tutorial-two-dotnet.html

3、Publish/Subscribe 发布/订阅模式

http://www.rabbitmq.com/tutorials/tutorial-three-dotnet.html

4、Routing 路由模式

http://www.rabbitmq.com/tutorials/tutorial-four-dotnet.html

5、Topics 主题模式

http://www.rabbitmq.com/tutorials/tutorial-five-dotnet.html

6、RPC 模式

http://www.rabbitmq.com/tutorials/tutorial-six-dotnet.html

 

-------------------------------------------------

 技术交流QQ群:588273396

 -------------------------------------------------

转载于:https://www.cnblogs.com/xiaobai888/p/7704477.html

你可能感兴趣的文章
JMeter响应数据出现乱码的处理-三种解决方式
查看>>
获取设备实际宽度
查看>>
Notes on <High Performance MySQL> -- Ch3: Schema Optimization and Indexing
查看>>
Alpha冲刺(10/10)
查看>>
数组Array的API2
查看>>
为什么 Redis 重启后没有正确恢复之前的内存数据
查看>>
No qualifying bean of type available问题修复
查看>>
第四周助教心得体会
查看>>
spfile
查看>>
Team Foundation Service更新:改善了导航和项目状态速查功能
查看>>
WordPress资源站点推荐
查看>>
Python性能鸡汤
查看>>
android Manifest.xml选项
查看>>
Cookie/Session机制具体解释
查看>>
ATMEGA16 IOport相关汇总
查看>>
JAVA基础-多线程
查看>>
面试题5:字符串替换空格
查看>>
[Codevs] 线段树练习5
查看>>
Amazon
查看>>
component-based scene model
查看>>