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?

asked a year ago218 views
1 Answer
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
EXPERT
answered a year ago
profile pictureAWS
EXPERT
Greg_B
reviewed 10 months ago
  • 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?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions