简体   繁体   English

MQTT与Mosquitto

[英]MQTT with Mosquitto

What message queues are supported by Mosqitto ( http://mosquitto.org/ )? Mosqitto( http://mosquitto.org/ )支持哪些消息队列? Also I want to know in MQTT protocol, a different message queue is created for each topic or it can be done without that in case of memory constraints. 另外我想知道在MQTT协议中,为每个主题创建了一个不同的消息队列,或者在内存限制的情况下可以不用它来完成。

Mosquitto only supports MQTT. Mosquitto仅支持MQTT。 MQTT doesn't have the concept of what is normally considered a queue. MQTT没有通常被认为是队列的概念。 Having said that, each client has a queue of messages that will be delivered to it. 话虽如此,每个客户端都有一个将传递给它的消息队列。 The number of messages in the client queue can be limited with a configuration option. 可以使用配置选项限制客户端队列中的消息数。 In the future there will be an option to globally limit heap usage and hence the overall length of queues. 将来可以选择全局限制堆使用量,从而限制队列的总长度。

Messages may be queued by a broker like Mosquitto in different ways based on the Quality of Service (QoS) specified by the publisher. 消息可以由诸如Mosquitto的代理以基于发布者指定的服务质量(QoS)的不同方式排队。

See http://2lemetry.com/2013/08/22/mqtt-in-a-nutshell/ for a good description of MQTT QoS. 有关MQTT QoS的详细说明,请参见http://2lemetry.com/2013/08/22/mqtt-in-a-nutshell/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM