8 comments

[ 1.2 ms ] story [ 35.0 ms ] thread
[flagged]
How does it compare to `stamina` library ?
backon is the modern successor to `backoff` with zero dependencies and features like circuit breaker, hedging, rate limiter, generator retry, and 4 different APIs. `stamina` is an opinionated wrapper around `tenacity` that provides safe defaults but doesn't add new functionality. backon is more feature-complete and standalone; stamina is more conservative and depends on the tenacity ecosystem.
It'd be helpful if the readme mentioned why someone would want to migrate from backoff.
Yes, it does document it, it might be a little hard to find because it's quite large, there's even a GIF showing it if you want to see it, if you could give it a star to help I would appreciate it!
How does it compare to tenacity?
backon has more built-in features (circuit breaker, hedging, rate limiter, generator retry, metrics, trio support, `retry_with()`), zero dependencies, and aims to be faster. tenacity is much more mature (9+ years), has a massive community (7k stars, 30M+ monthly downloads), broader Python version support (3.8+), and is battle-tested in production at scale. backon is the innovation leader; tenacity is the reliability leader.