vert-x3 / vertx-circuit-breaker

A circuit breaker for Vert.x
Apache License 2.0
63 stars 32 forks source link

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

Closed pierDipi closed 2 years ago

pierDipi commented 2 years ago

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.