Skip to main content

http_retry_config

Function http_retry_config 

Source
pub fn http_retry_config(
    max_retries: u32,
    initial_delay_ms: u64,
    max_delay_ms: u64,
) -> RetryConfig
Expand description

Builds a [RetryConfig] for Derive HTTP calls from the adapter’s config fields.

max_retries is the budget; initial_delay_ms and max_delay_ms bound the exponential backoff. Other fields use values tuned for Derive: a 60-second per-attempt timeout (REST endpoints can return slow during venue load), a 3-minute overall budget, and 1s of jitter to avoid synchronizing retry storms across processes.