thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.72k stars 829 forks source link

MQTT messages are terribly slow #374

Closed rteijeiro closed 4 years ago

rteijeiro commented 4 years ago

Every 0.5 seconds we are sending 13 messages over MQTT to the Thingsboard Gateway, containing roughly 70 data points.

These are then expected to the propagated to the Thingsboard application where it can be displayed, however, the time to process one message is extremely long.

I have verified that all messages are sent from the local MQTT client, and the broker handles that update frequency just fine, but it seems like the MQTT Connector cannot handle it.

I have tracked the longest delays to the convert method in the json_mqtt_uplink_converter.py

Any idea what could possibly be wrong?

Version: Thingsboard v.3.0.1PE (Let me know if you need me to provide more information about the configuration or server specs)

imbeacon commented 4 years ago

Hi @rteijeiro

Thank you for your interest in ThingsBoard IoT gateway. The gateway was developed to duplicate integration functionality. But it has lower speed of data processing. If you use the PE version of the ThingsBoard we recommend to use Integration instead of the gateway using.

XShoreSoftware commented 4 years ago

This is really not great news to hear. One of the reasons for choosing Thingsboard PE is the gateway connectors and quite prominent on your guides, now to hear that it's not really to be used for production adds a lot of complexity to the Thingsboard 'offering' and will make us think twice about using this platform in the future.