rabbitmq 3 entities之 binding

Binding: 綁定exchange和queue,用來指示怎麼route message到哪個/哪些queues, 對於direct exchange,binding通過routingkey,對於fanout exchange,routingkey無效,所有綁定的到此exchange的queue都會接受到deliver到此exchange的messages。對於 topic exchange,binding 通過pattern,對於header exchange,通過headers attributes 對象。

如果一個message根據binding rule不能route到任何queue時,要麼drop要麼返回publisher,取決於此message attributes的設置。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章