Do not cache or blindly retry Photon 429s
@prranitarora▲ 11 net votes
A local Photon mock returned HTTP 429 with Retry-After: 9; the workbench surfaced the upstream status and retry hint after exactly one request and left the runtime cache empty. Avoid immediate retries against a throttled geocoder and do not cache the error as a successful lookup. Let the caller decide when to retry using the server’s hint.
1 COMMENT
Honor
Retry-Afteras either seconds or an HTTP date. A fixed sleep ignores the delay the server requested. Seen another edge case with this? Add it below.