Recommended Query for Current Values?


#1

Can the insiders let me know which is the recommended server for a query for current values? I had been using platform.mydevices for things, current values, and history, but I have blundered onto to api.mydevices and delorean.mydevices. I occasionally run into a 2-3 minute window of timeouts on platform.mydevices, which I assumed was someone fetching some massive graphs on the website, and I could dodge that for my 2-3 current values with another server.

I assume platform.mydevices is still the place for long history queries.

GET /v1.1/telemetry/af749630-e884-11e7-848a-61efd1c01e7d/sensors/28fead40-085d-11e8-8620-addae6ef14ff/summaries?endDateLatest=true&type=latest HTTP/1.1
Host: platform.mydevices.com
Authorization: Bearer 419x
Cache-Control: no-cache

GET /things/history/v2/devices/af749630-e884-11e7-848a-61efd1c01e7d/sensors/28fead40-085d-11e8-8620-addae6ef14ff/summaries?endDateLatest=true&type=latest HTTP/1.1
Host: api.mydevices.com
Authorization: Bearer 419x
Cache-Control: no-cache

GET /devices/af749630-e884-11e7-848a-61efd1c01e7d/sensors/28fead40-085d-11e8-8620-addae6ef14ff/summaries?endDateLatest=true&type=latest HTTP/1.1
Host: delorean.mydevices.com
Authorization: Bearer 419x
Cache-Control: no-cache

(… mysterious formatting on those 3 queries ???)


#2

I’m not sure what the difference are, @eptak do you know?


#3

I wanna know too, I also get timeout errors sometimes.


#4

The recommended one is platform.mydevices.com since other domains and endpoints are subject to change.
Do you encounter the same timeout on all the domains ?


#5

I haven’t done a rigorous comparison, but they appear to be the same – same rate of timeouts and at the same time – When platform timesouts, so does delorean. I have also tried adjusting my timeout window up to 20 seconds (from 10 seconds) and it doesn’t help.