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?

preguntada hace un año228 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace un año
profile pictureAWS
EXPERTO
Greg_B
revisado hace un año
  • 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?

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas