|Latency of Mqtt Messages [message #1796789]
||Thu, 18 October 2018 23:16
| Talha Ghaffar
Registered: February 2017
I want to measure the time that a published message spends in the Mosquitto broker. My goal is to determine the latency breakdown of MQTT messages.
1. from publisher to reception by the broker
2. time spent in the broker
3. from broker_publish to reception by the subscriber.
My setup, for now, is a multiple publishers publishing to broker but one subscriber. I am using clean session & QoS = 1.
I am measuring total latency by adding a timestamp in payload @ publisher and taking the diff at the subscriber. From pub-to-broker, I am measuring it by taking /2 of the diff between timestamp @ publish time and timestamp @ reception of PUBACK [(T2-T1)/2].
I am not sure how other two components could be measured.
I haven't come across any stats/debug info that Mosquitto might provide regarding the time spent by a message in the broker. Does/Can mosquitto provide this data?
Powered by FUDForum
. Page generated in 0.02769 seconds