-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add fail fast policy #475
Comments
Would |
I don't see a I personally envision fail fast as completely stateless. Perhaps the
I'm not sure I understand what that means, but we could say the same about |
Also, similarly to |
In other words, one would be able to inject CDI beans into the handler? That should be enough to be able to do something sensible. WDYT about naming it |
I went with "fail fast" as that's how Release It calls it :-) |
@Ladicek will experiment in SmallRye first and comes back with more findings. |
Currently, we have
@CircuitBreaker
, which automatically (based on relatively simple criteria) provides a "fail fast" behavior. I propose to add general@FailFast
policy, which would delegate the "should fail fast?" decision to some handler. For example:The API would look something like this:
I didn't have much time to look into this yet, so I'm filing this issue just to gather some feedback.
The text was updated successfully, but these errors were encountered: