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的设置。