mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 07:13:02 +00:00
Update image filenames
This commit is contained in:
1 parent
a94737075e
commit
7408620a71
3 files changed
+2
-2
No files matched your search
@@ -49,7 +49,7 @@ remote calls.
|
||||
|
||||
The service architecture is as follows:
|
||||
|
||||

|
||||

|
||||
|
||||
In terms of code, the end user application is:
|
||||
|
||||
@@ -292,7 +292,7 @@ public class DefaultCircuitBreaker implements CircuitBreaker {
|
||||
How does the above pattern prevent failures? Let's understand via this finite state machine
|
||||
implemented by it.
|
||||
|
||||

|
||||

|
||||
|
||||
- We initialize the Circuit Breaker object with certain parameters: `timeout`, `failureThreshold` and `retryTimePeriod` which help determine how resilient the API is.
|
||||
- Initially, we are in the `closed` state and nos remote calls to the API have occurred.
|
||||
|
||||
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user