apigear-io / template-cpp14

C++14 technology template
https://apigear.io/template-cpp14/docs/intro
MIT License
0 stars 2 forks source link

[FEAT]: Improve Mqtt speed and throughput #118

Open dorotaphanSiili opened 1 year ago

dorotaphanSiili commented 1 year ago

Description

with running locally tests for setting property in a loop the cpp mqtt results are very poor comparing to qt implementation (for tests see https://github.com/apigear-io/performance-checks). The broker used for both cpp and qt tests was mosquitto . The ideas to improve that is to switch to QoS 1 and implementing discarding dupilcated message or to switch to different library

Additional Information

No response

w4bremer commented 5 months ago

There is a PAHO_HIGH_PERFORMANCE flag which we could try https://github.com/eclipse/paho.mqtt.c

We could also check whether the paho c++ implementation is faster https://github.com/eclipse/paho.mqtt.cpp/releases