Anyone successful with WeatherKIT REST API under heavy load?

Trying to transition over to weatherkit for production traffic. However, the pattern is clear: as the load increases, the frequency of slow responses ( > 650ms) and 502 Bad Gateway errors increases. In peak conditions, more than 50% of requests fail.

Apple says the API is not rate limited. So just wondering if others have experienced this and found a solution.

Replies

Cache the data for a specified time window.

I have the same issue. I cache some weather every night for around 300 locations and most nights a bunch of requests fail. I had to write a wrapper around my fetch logic to delay & retry everytime there's a failure.