retry — async plugin that retries failed dispatches with configurable backoff.
By default, permanent BusError codes (e.g. validation failures) are not retried — see RetryOptions.isRetryable to customize.
const bus = createAsyncCommandBus()bus.use(retry({ maxAttempts: 3, strategy: 'exponential', baseDelay: 200 })) Copy
const bus = createAsyncCommandBus()bus.use(retry({ maxAttempts: 3, strategy: 'exponential', baseDelay: 200 }))
retry — async plugin that retries failed dispatches with configurable backoff.
By default, permanent BusError codes (e.g. validation failures) are not retried — see RetryOptions.isRetryable to customize.