jitter-backoff
Zero-Dependency Exponential Backoff, Jitter Strategies, Atomic Retry Budgets & Retry-After Parsing
Overview
jitter-backoff implements zero-dependency exponential backoff with full, equal, and decorrelated jitter, a lock-free atomic RetryBudget against retry storms, and RFC 9110 Retry-After parsing for HTTP clients and workers.
Installation
Usage
use ;
let policy = new.with_jitter;
let mut state = policy.start_with_seed;
let _delay = state.next_delay;
let budget = new;
budget.deposit;
assert!;
assert!;
Verification
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For inquiries, please contact the author at root@devhub.vip.