InterviewSolution
Saved Bookmarks
| 1. |
What is the difference between using a Circuit Breaker and a naive approach where we try/catch a remote method call and protect for failures? |
|
Answer» Let's say we want to HANDLE service to service failure GRACEFULLY without using the Circuit Breaker pattern. The naive approach would be to wrap the REST call in a try-catch clause. But Circuit Breaker does a lot more than try-catch can not accomplish -
So instead of WRAPPING service to service calls with try/catch clause, we must use the circuit breaker pattern to make our system resilient to failures. |
|