Considerations

The following considerations should be taken into account while implementing this pattern:

  • Performance: Using circuit breaker has a performance implication depending on the type of cache used to store the failed request count.
  • Reacting to failures: Clients using the circuit breaker pattern should implement fallback logic in case of failures. The client may either fail the operation or carry out a workaround such as saving the request in a queue that would be processed later.
  • Concurrency: A large number of concurrent instances of an application may access the same circuit breaker object. The implementation of the circuit breaker should not block concurrent requests or add excessive overhead to each call to an operation.
  • Types of exceptions: The type of exceptions that trip the circuit breaker should be carefully considered. A logical exception should not cause the circuit breaker to trip and short-circuit calls made to the underlying service.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.53.112