threefoldtech / rmb-rs

RMB implementation in rust
Apache License 2.0
3 stars 1 forks source link

Consider exponential backoff error-handling strategy for the workers retries #57

Closed sameh-farouk closed 1 year ago

sameh-farouk commented 2 years ago

Currently, the HTTP workers do not wait between retries. Retrying calls without waiting can produce a heavy load on the Remote RMM, also, retrying too fast will not help to get a result in a momentary outage.

I suggest considering exponential backoff for worker retries where the worker periodically retries a failed request with increasing delays between requests.

Benefits: