In order to make system resilient, circuit breaker is used to avoid cascading failures.
This Circuit Breaker sample has been developed using Resilience4j. This project contains a sample as to how to use resilience4j within an application.
To run this, clone the project and run
mvn clean test