Retries
Instant Retries
Global Instant Retries
Command Bus instant retries
#[ServiceContext]
public function registerRetries()
{
return InstantRetryConfiguration::createWithDefaults()
->withCommandBusRetry(
isEnabled: true,
retryTimes: 3, // max retries
retryExceptions: [DatabaseConnectionFailure::class, OptimisticLockingException::class] // list of exceptions to be retried, leave empty if all should be retried
)
}Asynchronous Instant Retries
Command Bus Instant Retries
Instant retries times
Instant Retries exceptions
Asynchronous Delayed Retries
Installation
Using Default Delayed Retry Strategy
Using Custom Delayed Strategy for Consumer
Last updated
Was this helpful?