failsafe
failsafe copied to clipboard
Fault tolerance and resilience patterns for the JVM
When numerous executions may be performed around the same time, such as when a fleet of clients drop connections to an external server and reconnect, it may be desirable to...
I am working on extending an [open source application](https://github.com/eclipse-dataspaceconnector/DataSpaceConnector) for distributed data exchange that uses failsafe. One thing the application does is serve as a mediator, accepting and persisting HTTP...
I'm using failsafe for a job that should run 'forever' with the following code: ```java RetryPolicy retryPolicy = RetryPolicy.builder() .withMaxRetries(-1) .withBackoff(Duration.ofSeconds(2), Duration.ofMinutes(2), 2.0) .onFailedAttempt(event -> log.warn("Backoff from failure", event.getLastException())) .build();...
Added option to reset the backoff delay to the initial delay when a (potentially long-running) task has been running without issues for a given duration. See: https://github.com/failsafe-lib/failsafe/issues/341
Small improvement, though I'm not sure if it's worth doing. Thoughts? -- This is meant to make it slightly (maybe? arguably?) easier to write FailurePolicy.handleIf statements that are specifically typed....
We talked about this a few days ago; basically, it allows you to properly catch an `Exception` thrown from code you call in a lambda, like so: ```java public void...
Please enhance Rate Limiter so that the amount of time spent waiting for the operation is less than a configurable percent. Let's say an operation takes 10 seconds and the...
The Execution.record methods should return a result. This will allow Fallback results to be communicated back to an `Execution` caller.
In the hardware world, there is a concept of a watchdog. The rest of the hardware or software has to periodically state that is operating properly. If the hardware or...