api.thingspeak.com DNS TTL is 60 seconds. Why is so? | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
api.thingspeak.com DNS TTL is 60 seconds. Why is so?
No permission to create posts
September 5, 2018
8:21 am
Avatar
Deimos

Silver
Members
Forum Posts: 5
Member Since:
January 2, 2018
sp_UserOfflineSmall Offline

Hi guys, my ESP8266 sends data to ThingSpeak every minute. Also, it resolves api.thingspeak.com to its IP every minute, that is because you've set DNS TTL to 60 seconds.
I have noticed that your IP address rarely changes (or not changes at all), but still all ESP8266/ESP32 (and other) resolve api.thingspeak.com to its IP every minute because TTL is 60... Is there any reason why you choose TTL 60s ? I suggest using 300 seconds or even 600 seconds. For example cloud.blynk.cc uses 3600 seconds DNS TTL.
More here: https://github.com/esp8266/Arduino/issues/5102
Thanks!

September 18, 2018
7:50 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 510
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

If we set TTL to a larger value and we updated our servers, users may lose data for as much time as the TTL is set for. We picked this number as a balance so at most free users will lose 4 points (i.e., one minute of data) from their devices.

October 13, 2018
9:33 am
Avatar
Deimos

Silver
Members
Forum Posts: 5
Member Since:
January 2, 2018
sp_UserOfflineSmall Offline

Thanks for the reply. Sounds reasonable, but you could just change TTL before the server update. For example, you could change it to 15 seconds before the update and then change it to 300 or 600 seconds again. Although I don't know how all this server IP update works, so maybe there are some more reasons. But I think there must be a smarter way to do all this.

October 18, 2018
1:52 pm
Avatar
JasonW

MathWorks
Members
Forum Posts: 40
Member Since:
October 21, 2016
sp_UserOfflineSmall Offline

The other advantage of a 60 second TTL is that we can react to outages quickly.

If possible, please share more details about your application and why a 60 second TTL is a problem. We weighed the advantages and disadvantages when choosing 60 seconds. However, we may have overlooked something.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
35 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

Janetkab, petersevruk, SGDamiano1, seanoz60, Beverlytreta, MartaKah

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457