vertx-circuit-breaker icon indicating copy to clipboard operation
vertx-circuit-breaker copied to clipboard

Allow to dynamically define a retry delay based on the result of the Promise passed to execute

Open pierDipi opened this issue 1 year ago • 0 comments

Describe the feature

A common use case for a circuit breaker is to retry or circuit break remote HTTP calls done by a web/HTTP client. HTTP servers use the Retry-After header to dynamically suggest to clients to retry after a defined period of time during their unavailability. The current circuit breaker API allows defining the retry period at creation time only, so it's not possible to define it dynamically based on whatever the downstream service suggests.

Use cases

(covered above)

Contribution

Who should implement this feature ? are you volunteering for implementing this feature or do you know that is able and willing implement this feature ?

I can help but I'm not entirely sure about a Vert.x idiomatic API for exposing this.

pierDipi avatar Jul 05 '22 14:07 pierDipi