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?

posta un anno fa228 visualizzazioni
1 Risposta
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
ESPERTO
con risposta un anno fa
profile pictureAWS
ESPERTO
Greg_B
verificato un anno fa
  • 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?

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande