Best way to Fetch connectionState
from 1000's of devices. Currently there is not that much devices, but need an efficient solution.
Based on my understanding, currently I can fetch connectionState
using
- IotHub
Queries(select * from devices)
orregistryManager.GetDevicesAsync(100);
-- these methods are not real time when querying for 1000's of devices, or wont be efficient when number of devices increase. - HeartBeat - I don't prefer this as this will overload quota when the number of devices is large which results in sending too many messages.
- Operations Monitoring/Diagnostics Monitoring -- First one is good but its getting deprecated by October, 2018 and second one takes about 2 minutes to get message in eventhub(this latency I have tried myself and found out).
Please Suggest some ways and also correct me if I am wrong about any of the above.