Building Resilient Systems: Circuit Breakers with Hystrix
Building Resilient Systems: Circuit Breakers with Hystrix

Building Resilient Systems: Circuit Breakers with Hystrix

Author
Shiv Bade
Tags
resilience
hystrix
fallback
Published
April 15, 2015
Featured
Slug
Tweet
A recent production issue reminded us: never trust remote systems to behave.
We integrated Netflix Hystrix to wrap remote calls with: - Circuit breaker - Timeout - Fallback
Sample snippet:
@HystrixCommand(fallbackMethod = "defaultResponse") public String getProfile(String id) { return profileService.call(id); } public String defaultResponse(String id) { return "unavailable"; }
One timeout shouldn’t bring down your system. Hystrix made sure of that.