This is a simple application to demonstrate circuit breaker patter using the netflix-hystrix library
For this scenario, before running the application run the docker-compose which will expose an api with which our service will interact. Once the docker-compose is up, run the springboot application and hit the endpoint, observe the logs.
For this scenario, do not run the docker-compose file which will make the API unavailable for the service with which our microservice interacts thus implementing the fallback method in our service.
Once the service is up you can test both the scenarios by using the endpoint:
http://localhost:8080