Performance issue after bridging between Mosuitto and AWS IoT core

0

I have followed https://aws.amazon.com/blogs/iot/how-to-bridge-mosquitto-mqtt-broker-to-aws-iot/ link. I am able establish bridging between Mosuitto broker and AWS IoT core. AWS IoT core is receiving as per the configuration I have added in bridge configuration. The problem is happening when we were doing performance testing. We have tried 2500 publishes at a time . This execution was completed in 10 seconds without fail. But AWS IoT core received only 369 messages. Its varying each time. But success rate below 50%. How can we resolve this performance issue?

已提问 1 年前228 查看次数
1 回答
2

Hi Anas P A,

when you publish 2500 messages in 10secs, you publish 250 messages per second. AWS IoT Core has a quota of 100 messages per second per connection. When Mosquitto does not open multiple connections that might be the limiting factor. You can work around this by opening multiple connections in case Mosquitto supports it.

Cheers,
Philipp

AWS
专家
已回答 1 年前
profile pictureAWS
专家
Greg_B
已审核 1 年前
  • Thanks Philips for response. Seems like that could be the reason. I have tried with multiples clients at bridge level. That is also not resolving my issue. So, Do we have any option to increase AWS IoT Core quota of publish messages per second per connection?

  • 100 messages per second per connection is a hard limit, that means it is not adjustable. Is your Mosquitto bridge capable of multiplexing connections to AWS IoT Core? Would it be an option to connect your devices directly to IoT Core so that a bridge does not become a bottle neck?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则