Closed gburgett closed 5 years ago
While we're at it we should also automatically retry on 503s, which we seem to get occasionally in JTJ
Happened in fort-worth environment today
Please investigate.
Oh man this is probably them tooting around in preview mode! We totally skip the cache in preview mode and always hit the CDN directly. We can optimize this...
https://www.contentful.com/developers/docs/references/content-delivery-api/#/introduction/api-rate-limits
The gem should handle the following response at the SimpleClient level:
The gem should then block all threads from making new queries until the reset period has elapsed. The request that caused the
429
response should also be retried.