Marko Novaković
01/05/2025, 1:46 PMarrow-resilience
to implement retry logic for the API with fixed window rate limit of 2 calls per second?
Schedule
.linear<Error>(1.seconds)
.zipLeft(Schedule.recurs(2))
.doWhile { error, _ -> error == RateLimit }
.retryRaise { ... }
something like this maybe?
fixes vs sliding window is what confuses me here.
will linear
take into account time that actual call takes or will it just delay for a second after call is done?Alejandro Serrano.Mena
01/06/2025, 8:42 AMsimon.vergauwen
01/30/2025, 9:10 AMlinear
will not take into account how long any function runs. This would require some additional state, but it might be possible to build such an operator.Marko Novaković
02/01/2025, 10:18 PM