Skip to main content

Module Retry

Module Retry 

Source
Expand description

Exponential-backoff retry logic with jitter and budget management.

Three cooperating types:

  • ErrorClass - classifies errors so RetryManager can pick the right delay strategy (transient, rate-limited, server error, non-retryable).
  • RetryPolicy - configurable max-attempts, intervals, backoff multiplier, jitter factor, and a per-service call budget.
  • RetryManager - applies the policy: computes delays, tracks per-service budgets, classifies errors, and publishes RetryEvent to a broadcast channel for telemetry subscribers.

Structs§

RetryBudget 🔒
Per-service retry budget: tracks attempt timestamps and enforces the calls-per-minute cap from RetryPolicy::BudgetPerMinute.
RetryEvent
Telemetry event published after every retry attempt.
RetryManager
Applies RetryPolicy: computes delays, tracks budgets per service, classifies errors, and publishes RetryEvents.
RetryPolicy
Retry policy configuration - controls all delay and budget parameters.

Enums§

ErrorClass
Error classification for adaptive retry policies.