01. Hystrix 사용하기

Display → Product 연동 구간에 Circuit Breaker를 적용!

[display] build.gradle에 hystrix dependency추가

compile('org.springframework.cloud:spring-cloud-starter-netflix-hystrix')

[display] DisplayApplication에 @EnableCircuitBreaker추가

@EnableCircuitBreaker

[display] ProductRemoteServiceImpl에 @HystrixCommand 추가

@HystrixCommand


02. Hystrix Fallback 적용하기

가. Fallback 적용하기

git checkout tags/step-2-hystrix-fallback -b step-2-hystrix-fallback


나. Fallback 원인 출력하기

git checkout tags/step-2-hystrix-fallback2 -b step-2-hystrix-fallback2

03. Hystrix로 Timeout 처리하기

git checkout tags/step-2-hystrix-timeout -b step-2-hystrix-timeout


04. Hystrix Circuit Open 테스트

git checkout tags/step-2-hystrix-circuit-open -b step-2-hystrix-circuit-open



05. Hystrix Circuit Open commandKey 부여하기

git checkout tags/step-2-hystrix-command-key -b step-2-hystrix-command-key