how to use `arrow-resilience` to implement retry l...
# arrow
m
how to use
arrow-resilience
to implement retry logic for the API with fixed window rate limit of 2 calls per second?
Copy code
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?
a
cc @simon.vergauwen
s
linear
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.
m
thank you