随笔分类 -  RabbitMq

摘要:介绍如何使用fanout模式将消息推送到多个队列。有时我们会遇到这样的情况,多个功能模块都希望得到完整的消息数据。例如一个log的消息,一个我们希望输出在屏幕上实时监控,另外一个用户持久化日志。这时就可以使用fanout模式。fanout模式模式不像direct模式通过routingkey来进行匹配 阅读全文
posted @ 2018-04-14 23:06 乎合 阅读(1092) 评论(0) 推荐(0)
摘要:<?php /* * 发布-订阅 * create by superid */ $queueName = 'superid'; $exchangeName = 'superid'; $routeKey = 'superid'; $conn_args = array( 'host' => '127.0 阅读全文
posted @ 2018-04-14 22:12 乎合 阅读(310) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/79ca08116d57 https://www.cnblogs.com/seans/p/3857925.html https://mp.weixin.qq.com/s?__biz=MzAxNzMwOTQ0NA%3D%3D&mid=26533546 阅读全文
posted @ 2017-12-30 23:02 乎合 阅读(279) 评论(0) 推荐(0)