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

[Feature request] Propagating back-pressure from server under stress to the clients. #1296

Open everslick opened 7 months ago

everslick commented 7 months ago

Is there a standard (or custom for that matter) way to inform the clients, that the server is under high load?

Our clients are connected via MQTT and have the ability to queue messages in case of network failure. If they happen to go online again simultaneously they easily kill the server when sending up to 50 messages per second each. I would like to send a back-off or better a max-send-rate=12 MQTT message from the server to the clients, if it gets under pressure.

Any ideas are appreciated.

github-actions[bot] commented 7 months ago

Hi @everslick.
Thank you for your interest in ThingsBoard IoT Gateway.
Your issue was registered, please wait for response from engineer.

IOTGW-108