Advantages of AMQP protocol | disadvantages of AMQP protocol
This page covers advantages and disadvantages of AMQP protocol used in IoT (Internet of Things). It mentions benefits or advantages of AMQP protocol and drawbacks or disadvantages of AMQP protocol.
What is AMQP protocol?
AMQP is the short form of Advanced Message Queuing Protocol which runs over TCP layer. This session layer protocol is based on publish/subscribe architecture similar to MQTT protocol.
AMQP does asynchronous transfer of messages regardless of OS, hardware ot programming language. It is advanced optimized on wire of data framing which has buffering approach that increases performances of server. It provides secured connection to users using TLS and SASL.
The figure depicts architecture of AMQP. As shown AMQP broker consists of exchange and queues. Publishers deliver messages with specific routing keys to the exchange. Exchange uses these keys to route messages to appropriate queues. Messages are stored in the queues until they are delivered to or read by subscribers. Binding define rules to bind exchange to queue.
Benefits or advantages of AMQP protocol
Following are the benefits or advantages of AMQP protocol:
➨It uses QoS and hence ensures safe passage of important data.
➨AMQP uses already established publish/subscribe architecture for data sharing as used by MQTT protocol.
➨It ensures interoperability as it uses wire level protocol which sends data as stream of bytes.
➨It offers simpler peer to peer communication along with intermediaries.
➨The protocol has space to evolve to work with different standards.
➨It offers secured connection to users using SSL protocol like CoAP, MQTT, HTTP and XMPP.
Drawbacks or disadvantages of AMQP protocol
Following are the drawbacks or disadvantages of AMQP protocol:
➨It is not backward compatible with old versions.
➨It is not as simple as HTTP 1.0 or HTTP 1.1 or any other wire protocols.
➨It requires higher bandwidth unlike MQTT/CoAP/XMPP.
➨Resource discovery is not supported unlike CoAP/HTTP/XMPP.