AMQP Architecture basics | Architecture of AMQP protocol
This page covers AMQP architecture basics.The architecture of AMQP consists of publishers, subscribers and a broker.
AMQP stands for Advanced Message Queuing Protocol.
It is session layer protocol which runs over TCP layer. It is based on publish/subscribe architecture similar to MQTT protocol architecture.
Figure: AMQP Architecture
The difference between MQTT and AMQP is that in AMQP broker is composed of two components viz. exchange and queues. Both exchange and queues are binded together.
In this architecture, client applications are known as producers ("publishers") while AMQP server is known as broker. Client apps create messages which are given to broker. In the broker, messages are routed and are queued. They are being read by consumers from the queues where they are processed. These client applications are known as consumers ("subscribers").
Exchange: This is the place where publishers deliver messages.
The messages contain routing keys which are used by "exchange" module
in order to route them (i.e. messages).
There are three different types of exchange methods viz.
direct exchange, fanout exchange and topic exchange.
Queues: These are the places where messages are stored until they are delivered to or read by subscribers.