emqx – Managing MQTT Connections: To Close or Not to Close After MQTT Message Publish?
All the devices sends message at fixed interval of 15 minutes starting from 12:00 onwards.
So this basically means you are creating a 70k client connection storm every 15mins.
I’m not surprised that devices are failing to connect.
I would suggest your best option is to keep the connection open all the time.
Since power is not a problem the only factor to consider here is how much bandwidth the keep alive pings will cause on the NBIoT connection, but this can be mitigated by increasing the ping time to something like 5mins.
The other option (in addition to keeping connected) is if the message payload contains a timestamp the devices could add some random jitter to when the devices publish their message, this way the broker is not also dealing with 70k publishes all happening in the same second. Given the data is only at 15min resolution +/-2 (or more) mins across the devices would also help reduce load on the broker.
Read more here: Source link
