Search code examples
rabbitmqmqttamqp

Does MQTT use AMQP?


I was fiddling with MQTT brokers and created channels and subscribed to them. Today I log into my RabbitMq interface and I find two queues titled

mqtt-subscription-1qos1 and mqtt-subscription-2qos1. I was very confused because I don't know how the two relate to each other.

Is MQTT built on top of AMQP so thats why it creates queues?


Solution

  • To answer the question in the subject, No MQTT is it's own independent protocol and has nothing to do with AMQP.

    RabbitMQ's implementation of MQTT may make use of queues for clients subscribing to topics at QOS 1/2 in order to ensure those messages are delivered when the client is offline and also to ensure the messages are delivered in order.