O'Reilly logo

Industrial Internet Application Development by Kishore Reddipalli, Prashant Tyagi, Jayant Thomas, Alena Traukina

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Example

We are going to use a very simple use case to illustrate the circuit breaker. In this use case, we are going to invoke an external service and use a very simple fallback for demonstration purposes. Imagine if the external service fails due to the network, or perhaps the system is very busy and cannot handle the load, and the client could be forced to wait for up to 60 seconds before an exception occurs. By sending more and more requests to an already exhausted service, resources such as memory, connections, and threads could be exhausted, preventing other clients from getting serviced, and this will bring down the overall SLA of the system.

Implementing the circuit breaker in the client could help to solve this problem and handle ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required