RabbitMQ 学习笔记

  • 启用后台的教程地址:http://www.rabbitmq.com/management.html 
  • Connections are meant to be long-lived。
  • Channels are also meant to be long-lived but since many recoverable protocol errors will result in channel closure。
  • 工作流程图

从上图可以看出生产者是不知道队列的,它只是将消息发送到exchange,exchange会和queue进行绑定

  • exchange有多种类型,分别为:direct,fanout,topic等。
    • direct:根据routekey直接发送
    • fanout:向所有exchange知道的queue发送
    • topic:根据主题发送

猜你喜欢

转载自www.cnblogs.com/taohonggou/p/8985909.html
今日推荐