728x90
반응형

MSA 3

Eureka Server Config 관련 설정들

eureka.client register-with-eureka : 유레카에 등록할지 여부. fetch-registry : 유레카에서 조회할지 여부 registry-fetch-interval-seconds: 클라이언트 측에서 eureka registry를 캐싱하는 시간 disable-delta: 마지막으로 시도한 값에서 변경된 내용만 가지고 오도록 설정. false로 설정 시 바뀌지 않은 내용도 다 가지고 오게 된다. eureka.server enable-self-preservation : 자기보존모드. true일 경우 동작. 네트워크 같은 장애 발생 시 모든 서비스가 eureka에서 일괄 해제되는 현상을 막기 위해 사용. Real에서는 항상 true 여야 한다. eviction-interval-time-..

Architecture/MSA 2021.01.27

Hystrix, Feign을 이용한 개발

아직 프로토타입까지만 작성하였지만 기본적인 내용이 돌아가기에 현재의 상태를 기록한다. application.yml 파일 feign: hystrix: enabled: true client: config: feignName: connectTimeout: 5000 readTimeout: 5000 loggerLevel: full hystrix: command: default: # 5초 타임아웃. 1분동안 최소 5회 호출 이상, 50% 이상 실패면 circuit open execution: isolation: thread: timeoutInMilliseconds: 5000 metrics: rollingStats: timeInMilliseconds: 60000 circuitBreaker: requestVolumeT..

Architecture/MSA 2020.12.18

Zuul을 이용한 Gateway 구축 시 설정

Zuul을 이용하여 MSA의 Api Gateway 구축을 테스트 삼아 하고 있는데 설정 값을 지정하면서 알게 된 내용을 정리한다. application.yml 파일을 아래와 같이 설정 하였다. spring: application: name: api-gateway server: port: 8801 eureka: instance: instance-id: zuul-inst001 client: service-url: defaultZone: http://localhost:8761/eureka zuul: routes: chauffeur: path: /chauffeur/** stripPrefix: true path 에 지정하는 값은 client에서 api gateway로 호출할 때의 url path 이다. 해당 pa..

Architecture/MSA 2020.12.11
728x90
반응형