Choose delivery level, message expiry and persistent sessions according to device importance and connectivity.
Separate critical events from samples
Alarms and state changes may need durable delivery, while frequent samples can be summarized. Define latency, retry and retention by class.
Test reconnect load
Many gateways may reconnect at once after an outage. Validate retry delay, broker capacity and queue growth under load.