failsafe
                                
                                
                                
                                    failsafe copied to clipboard
                            
                            
                            
                        Fault tolerance and resilience patterns for the JVM
I'd like to consider what the right behavior should be when an `Error` is thrown inside an event listener. Some event listeners happen in the middle of execution, such as...
That way a `FailsafeException` will contain all information about all attempts. See: https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)
See https://github.com/jhalterman/failsafe/issues/145#issuecomment-456217684 One of the challenges I am recalling from sync CompletionStage execution is how to implement sync retries without spawning another thread or potentially blowing up a call stack,...
For result listeners that are improperly typed, ClassCastExceptions may occur. It might be nice to report these out somehow, such as via a logging extension.
Ex: ``` onFailedAttempt(ConnectException.class, e -> log.error("Failed to connect", e)); ``` Failure instances of `ConnectException` will trigger the listeners, else the listener is not triggered. Currently users can do: ``` onFailedAttempt(e...
We are big fan of FailSafe! First of all thank you guys for supporting this awesome framework. It helps us a lot. Sometimes a given service (mostly Orchestration Service) needs...
As Failsafe already supports policies that are useful for networked operations, it would make sense to support phi accrural (or other accural algorithms) failure detection for situations where fixed timeouts...
I configure a CircuitBreaker with a delay. I expect to transition from OPEN to HALFOPEN after delay-time given that nothing gets recorded. It does not happen. Code to observe this...
https://failsafe.dev/policies/#composition-recommendations Recommends circuit breaker inside retry rather than outside retry. I'd love to see more elaboration as to why? I would think the reverse would be better, however Failsafe is...
Using FailSafe is a useful solution. In some cases, we'd like to keep the option to adapt / change the policy or its parameters (e.g. number of retries, timeouts) on...