728x90 반응형 spring cloud2 [SCG] Spring Cloud Gateway 기본 설정 및 헤더, 공통 에러 처리 사용 이유 - API의 단일 진입점 역할 - 인증/인가, LB, 로깅, Circuit Breaker 역할 - Non-Blocking 방식 (Zuul2도 Non-Blocking) 흐름 GatewayClient : 경로와 일치하는지 판단 [Predicate] Gayeway Handler Mapping [Predicate] Gateway WebHnadler : 요청과 관련된 필터체인을 통해 요청을 전송 Filter : 프록시 요청이 보내지기 전후에 나누어 로직 수행 Proxy Filter : 프록시 요청이 처리될때 수행 Proxied Service 프록시 이용법 Spring Cloud Gateway 게이트웨이 서버 gradle plugins { id 'org.springframework.boot' versio.. 2022. 8. 17. [Spring Cloud Config] Spring Cloud Config를 이용한 환경설정 관리 분산 시스템에서 환경설정을 외부로 분리하여 관리하는 기능을 제공한다. 운영중에 서버 빌드 및 배포 없이 환경설정 변경 가능하다. Config Server를 사용하여 모든 환경(개발, 테스트, 프로덕션)에 대한 어플리케이션들의 속성을 한 곳에서 관리할 수 있다. 기본 값은 git이며, git repository에서 관리한다. ConfigServer가 실행되는 native환경(서버가 실행되는 컴퓨터)으로 설정 할 수도 있다. https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-2020.0-Release-Notes#breaking-changes 예전에는 bootstrap.yml를 이용하여 application.yml 이전에 환경설정을 .. 2021. 9. 10. 이전 1 다음 LIST