February 2018
Intermediate to advanced
356 pages
9h 10m
English
As we expected, Spring Boot integrates with Netflix Hystrix. The integration can be done using a couple of annotations and by configuring the annotations with Hystrix properties. We will protect the planes microservice interactions we are coding in the flight service. We now have a method that tries to get the plane's data.
Let's take a look at that method:
@HystrixCommand(commandKey = "plane-by-id",groupKey = "airline-flights",fallbackMethod = "fallback",commandProperties = { @HystrixProperty(name="circuitBreaker.requestVolumeThreshold",value="10"), @HystrixProperty(name = "circuitBreaker.errorThresholdPercentage", value = "10"), @HystrixProperty(name="circuitBreaker.sleepWindowInMilliseconds",value="10000"), @HystrixProperty(name ...