ConnectionFactory、Connection、Channel
Queue
Exchange(fanout、direct、topic、headers)
routing key
Binding
Binding key
exchange与queue进行绑定形成binding(binding key),
fanout: 忽略routing key,只要queue与绑定关系就路由
direct:routing key和 binding key完全匹配进行路由
topic:routing key和 binding key模糊匹配
发送消息到exchange,根据routing key和exchange与queue的绑定关系binding key进行路由
详细请看