Restate Typescript SDK
    Preparing search index...

    Interface ReconnectRetryPolicy

    Reconnect retry policy, the same shape as the invocation and client retry policies: a jittered exponential backoff between attempts, reset after a connection stays up long enough to count as stable. Intervals accept a Duration or a number of milliseconds.

    Unlike those policies the reconnect loop is unbounded by default — a deployment keeps trying until Restate Cloud is reachable again — so maxAttempts and maxDuration default to false. A bound is counted per server (and for DNS discovery itself); reaching it stops the deployment only when no other connection is alive, otherwise that server is dropped until discovery brings it back.

    interface ReconnectRetryPolicy {
        exponentiationFactor?: number;
        initialInterval?: number | Duration;
        maxAttempts?: number | false;
        maxDuration?: number | false | Duration;
        maxInterval?: number | Duration;
    }
    Index

    Properties

    exponentiationFactor?: number

    Exponentiation factor to use when computing the next retry delay. Defaults to 2.

    initialInterval?: number | Duration

    Initial backoff interval. If a number is provided, it is interpreted as milliseconds. Defaults to 10 milliseconds.

    maxAttempts?: number | false

    Max number of attempts (including the initial) in a row without a stable connection, before giving up. Giving up is a non-retryable stop: the connection's ready, close() and shutdown() reject with the reason.

    Defaults to false: no attempt bound.

    maxDuration?: number | false | Duration

    Max total duration without a stable connection, measured from the first failed attempt, before giving up. If a number is provided, it is interpreted as milliseconds.

    Defaults to false: no duration bound.

    maxInterval?: number | Duration

    Maximum backoff interval. If a number is provided, it is interpreted as milliseconds. Defaults to 120_000 milliseconds.