OptionalexponentiationExponentiation factor to use when computing the next retry delay.
Defaults to 2.
OptionalinitialInitial backoff interval. If a number is provided, it is interpreted as
milliseconds. Defaults to 10 milliseconds.
OptionalmaxMax 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.
OptionalmaxMax 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.
OptionalmaxMaximum backoff interval. If a number is provided, it is interpreted as
milliseconds. Defaults to 120_000 milliseconds.
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.