@s2-dev/streamstore - v0.22.0
    Preparing search index...

    Type Alias RetryConfig

    Retry configuration for handling transient failures.

    type RetryConfig = {
        appendRetryPolicy?: AppendRetryPolicy;
        connectionTimeoutMillis?: number;
        maxAttempts?: number;
        maxDelayMillis?: number;
        minDelayMillis?: number;
        requestTimeoutMillis?: number;
    }
    Index

    Properties

    appendRetryPolicy?: AppendRetryPolicy

    Policy for retrying append operations.

    "all"
    
    connectionTimeoutMillis?: number

    Maximum time in milliseconds to wait for connection establishment. This is a "fail fast" timeout that aborts slow connections early. Connection time counts toward requestTimeoutMillis.

    Only applies to S2S (HTTP/2) transport when establishing new connections. Reused pooled connections are not subject to this timeout.

    5000
    
    maxAttempts?: number

    Total number of attempts, including the initial try. Must be >= 1. A value of 1 means no retries.

    3
    
    maxDelayMillis?: number

    Maximum base delay in milliseconds for exponential backoff. Once the exponential backoff reaches this value, it stays capped here. Note: actual delay with jitter can be up to 2*maxDelayMillis.

    1000
    
    minDelayMillis?: number

    Minimum delay in milliseconds for exponential backoff. The first retry will have a delay in the range [minDelayMillis, 2*minDelayMillis).

    100
    
    requestTimeoutMillis?: number

    Maximum time in milliseconds to wait for an append ack before considering the attempt timed out and applying retry logic.

    Used by retrying append sessions. When unset, defaults to 5000ms.