AMQP (Advanced Message Queuing Protocol) 是 RabbitMQ 主要实现的标准消息传递协议——定义了消息的格式以及客户端与代理之间的消息交换方式。理解 AMQP 可以澄清 RabbitMQ 底层的协议。
AMQP 是什么
AMQP = a standardized, open PROTOCOL for message-oriented middleware:
→ defines the format of messages and the rules for exchanging them (between clients and
brokers)
→ an open standard → interoperability (different clients/brokers can communicate)
→ RabbitMQ's primary protocol (AMQP 0-9-1) → the model of exchanges, queues, bindings is
AMQP's model
→ AMQP is the protocol; RabbitMQ is a broker that implements it
AMQP 的模型(RabbitMQ 使用的模型)
AMQP defines the messaging model RabbitMQ uses:
→ PRODUCERS, EXCHANGES, QUEUES, BINDINGS, CONSUMERS (the concepts you work with)
→ routing via exchanges and bindings; acknowledgments; etc.
→ RabbitMQ's concepts come from the AMQP model
