ROS 보다보니 QoS 이야기가 나와서 조사

그런데 정작 찾아봐도 적용방법이 잘 안보인다.

conf 파일에서는 max_qos와 topic patern에 추가하는 정도?

 

topic pattern [[[ out | in | both ] qos-level] local-prefix remote-prefix]

max_qos value
Limit the QoS value allowed for clients connecting to this listener. Defaults to 2, which means any QoS can be used. Set to 0 or 1 to limit to those QoS values. This makes use of an MQTT v5 feature to notify clients of the limitation. MQTT v3.1.1 clients will not be aware of the limitation. Clients publishing to this listener with a too-high QoS will be disconnected.

Not reloaded on reload signal.

[링크 : https://mosquitto.org/man/mosquitto-conf-5.html]

 

QoS는 0,1,2가 존재한다. 그런데 기본값이 멀까..?

Quality of Service
MQTT defines three levels of Quality of Service (QoS). The QoS defines how hard the broker/client will try to ensure that a message is received. Messages may be sent at any QoS level, and clients may attempt to subscribe to topics at any QoS level. This means that the client chooses the maximum QoS it will receive. For example, if a message is published at QoS 2 and a client is subscribed with QoS 0, the message will be delivered to that client with QoS 0. If a second client is also subscribed to the same topic, but with QoS 2, then it will receive the same message but with QoS 2. For a second example, if a client is subscribed with QoS 2 and a message is published on QoS 0, the client will receive it on QoS 0.

Higher levels of QoS are more reliable, but involve higher latency and have higher bandwidth requirements.

0: The broker/client will deliver the message once, with no confirmation.
1: The broker/client will deliver the message at least once, with confirmation required.
2: The broker/client will deliver the message exactly once by using a four step handshake.

[링크 : https://mosquitto.org/man/mqtt-7.html]

 

초당 32000 메시지라.. 느린거 걱정안해도 될 것 같기도 하고?

[링크 : https://hel-p.tistory.com/18]

 

[링크 : https://dalkomit.tistory.com/111]

[링크 : https://www.ibm.com/docs/ko/ibm-mq/9.2.x?topic=concepts-qualities-service-provided-by-mqtt-client]

'프로그램 사용 > mosquitto' 카테고리의 다른 글

mosquitto for windows 계정추가  (0) 2025.02.18
mosquitto service for windows  (0) 2025.02.18
ubuntu MQTT(mosquito)  (0) 2024.05.23
mosquitto - MQTT broker  (0) 2019.05.15
Posted by 구차니