Unleash / unleash-client-go

Unleash client SDK for Go
https://docs.getunleash.io
Apache License 2.0
138 stars 55 forks source link

feat: obey http status and backoff on 429, 50x #156

Closed chriswk closed 10 months ago

chriswk commented 11 months ago

This follows the same pattern as Java and .NET. each 429, 50x error will increment error count, and reset skips to error, then for each trigger reduce skips by 1 until you reach 0, then perform the action again. on success reduce error count by 1 and reset skips to error count.

On 401,403,404 will increment skips/errors to max at once and return an error saying you might've configured the client wrong

ivarconr commented 10 months ago

💯