Retry Pattern
Retry Pattern
Related Patterns
Circuit Breaker Pattern
Service
Service
Service
Service
Service
Service
Service
Service
1
Service
2
Service
1
Service
2
Retry Strategies
Retry Strategies
1 - Cancel
Retry Strategies
1 - Cancel
Not transient
Retry Strategies
1 - Cancel
Not transient
Example:
Authentication failure
Retry Strategies
2 - Retry
Retry Strategies
2 - Retry
Uncommon or rare faults
Retry Strategies
2 - Retry
Uncommon or rare faults.
Unlikely to be repeated
Retry Strategies
2 - Retry
Uncommon or rare faults
Unlikely to be repeated
Unlikely to be repeated
Retry Strategies
3 – Retry after delay
Connectivity or busy faults
Unlikely to be repeated
Should wait for a suitable time before retry the failed operation.
Considerations
Considerations
matching with business requirements and the nature of the failure.
Considerations
matching with business requirements and the nature of the failure.
Adjust the time between retry attempts based on the type of the exception.
Considerations
matching with business requirements and the nature of the failure.
Adjust the time between retry attempts based on the type of the exception.
Adjust the time between retry attempts based on the type of the exception.
Adjust the time between retry attempts based on the type of the exception.
Testing
Considerations
matching with business requirements and the nature of the failure.
Adjust the time between retry attempts based on the type of the exception.
Testing
Logging
Considerations
matching with business requirements and the nature of the failure.
Adjust the time between retry attempts based on the type of the exception.
Testing
Logging
Short lived fault, and repeating a request that has previously failed could
succeed on a subsequent attempt.
When NOT to use this pattern?
When NOT to use this pattern?