I was curious how other are handling Web API calls that are slow or never respond. I run a waiting look, then return an error that LOOKS like the API service error.
EDIT: This API is acutally pretty fast. This is just an example of how I have been handling API calls in general.
What other approaches are others using?
I would use a different service if and when possible should I experience issues like that. Have you checked out googles timesone api? It’s only a 400 ms avg response time.
Obviously this doesn’t solve all situations. Your solution looks pretty solid IMO.
"dstOffset" : 3600,
"rawOffset" : -18000,
"status" : "OK",
"timeZoneId" : "America/New_York",
"timeZoneName" : "Eastern Daylight Time"
Thanks for the tip! This API is actually extremely fast and reliable. I have a few others that are less so.