본문 바로가기

Spring/Spring Cloud13

open feign log 설정 open feign을 사용하면서 Request,Response 에대한 header,body, parameter 를 확인 하고 싶을 것이다. 이때 로깅레벨을 변경 해주고 @FeignClient 가 있는 package 의 레벨을 debug 로 변경해주면 해당 로그를 볼수 있다. @Configuration public class GlobalCustomFeignConfig { /** * 기본 설정이 NON 으로 FULL 로 지정하여 request, response, header,body, metadata 모두를 로깅한다. * 로그 설정에서 @Feign package 를 debug level로 변경해 준다. */ @Bean Logger.Level loggerLevel() { return Logger.Level.F.. 2022. 1. 14.
Spring Open Feign 선언적 REST 클라이언트 이다. Feign 은 JAX-RS 또는 Spring MVC 의 주석을 이용하여 다이나믹하게 인터페이스를 구성,구현 할 수있다. 기존 RestTemplat을 사용해서 작업 했더라면 다음과 같은 이유로 Nexflix 에서는 Feign 을 개발하여 사용하였다. 좀더 공통적인 개발과 쉬운 API 호출을위함 MSA 환경에서는 서버가 자동으로 생성되고 삭제됨으로 인해 서버 엔드포인트의 변경. Ciruit Breaker 대한 처리 fallback 에 대한 처리 로드벨런싱된 http 클라이언트를 제공하기 위해 Eureka, Spring Ciruit Breaker, Spring LoadBalancer 를 통합함. (통합한다는 뜻은 사용한다는 의미 같다.) ⚠️ Spring MVC 에서는 동작되.. 2022. 1. 14.
circuit breaker (hystrix and the resilience4j) 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud 2021.07.21 - [Spring/Spring Cloud] - Netflix OSS 와 Spring Cloud 의 ecosystem 2021.07.21 - [Spring/Spring Cloud] - spring cloud eureka 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud Gateway, Circuit Breaker and Hystrix with in Eureka 2021.07.21 - [Spring/Spring Cloud] - API Gateway (Application Programming Interface) 2021.07.21 - [Spring/Spring .. 2021. 7. 21.
Netflix OSS(eureka, Hystrix , zull, ribbon) 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud 2021.07.21 - [Spring/Spring Cloud] - Netflix OSS 와 Spring Cloud 의 ecosystem 2021.07.21 - [Spring/Spring Cloud] - spring cloud eureka 2021.07.21 - [Spring/Spring Cloud] - Spring Cloud Gateway, Circuit Breaker and Hystrix with in Eureka 2021.07.21 - [Spring/Spring Cloud] - API Gateway (Application Programming Interface) 2021.07.21 - [Spring/Spring .. 2021. 7. 21.
728x90