-
Notifications
You must be signed in to change notification settings - Fork 12
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
Example: Circuit Breaker #60
Labels
Comments
tkohegyi
changed the title
Implement offer to have circuit-breaker
Example: CircuitBreaker
Jan 28, 2016
Branch "cb" is used to implement this. |
tkohegyi
added a commit
that referenced
this issue
Oct 15, 2017
* initial - NOT working version * minor update only, example is still not working * service part and main checker class is clarified - still not working * experimental json based stub config is added * lmost working, just the request interceptor part is missing * preparing the trasfer of the cb logic to req interceptor - stubconfig part * next phase, classes are there, still need fine tuning * use 1.5.161 version of browsermob for wilma jar * seems this is the first working version - need extensive testing, still * minor update, fix issue at toString method - still not working * fixed, first working version * enhance the documentation - it is still not finalized * updating readme file, finalizing the example
Done - see implemented solution and readme here: https://github.com/epam/Wilma/tree/master/wilma-extras/circuit.breaker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Need example solution for creating CircuitBreaker with Wilma.
Purpose: When we use Wilma in microservice environment, we might want to use it to act as circuit-breaker too. However it is possible, it is not offered by Wilma by default. Offering a default solution of circuit-breaker would be nice.
The Approach and Description below is just an initial idea, might be changed during the actual implementation
Approach: monitor req-res pairs, and if there is a problem, or it is requested, forward requests to its stub for a certain time.
Description:
Need interceptor that gets both request and response.
Req interceptor: adds special header with circuit-breaker-ID
Resp interceptor: evaluates if response is ok/not ok, and if not ok, turns on the circuit breaker
Class name: CircuitBreaker
Parameter list in XML:
Need API extension with:
What circuitbreaker ON would mean: enable all dialogdescriptors where the name contains the circuitBreakerID at the end of its name, with timeout.
The text was updated successfully, but these errors were encountered: