|performance issues [message #1807454]
||Thu, 30 May 2019 13:14
| matt powers
Registered: May 2019
I am attempting to benchmark MQTT for use with an application. I am wondering if I'm doing something wrong...
I setup Mosquitto with TLS and Client x509 certs. I used the GoLang library to connect and publish / receive.
This is all running on localhost, at QoS 1.
if i have 1 publisher and 1 subscriber, I can get 30,000 messages per second. Which is great.
But if I add a second publisher (in a separate exe) to the same topic, my throughput drops to around 2,000 messages per second.
This seems crazy to me. Other scenarios i am seeing..
if I have a subscriber receiving many messages, and he attempts to publish (i had him publish a status message every 15 seconds), it will block, and throughput dies again. (at QoS 1, 0 did better, but even that sometimes got slow)
From looking over some of the github code, I think the issue might be lock contention on the messageIds slice.
Am I doing this wrong? is the performance supposed to drop off like that?
Powered by FUDForum
. Page generated in 0.01240 seconds