내 세상

[Spring Cloud] API 통합 단일 진입점 제공 본문

Technical/Spring Cloud

[Spring Cloud] API 통합 단일 진입점 제공

sga8 2022. 12. 19. 18:13
728x90
반응형

API 통합 단일 진입점 제공

 

Spring cloud gateway vs zuul

 

 

 

API GW를 이용한 API proxy 실습

 - API Gateway 를 통해 요청이 전달되도록 설정하는 방법

 

시간에 따른 연결처리 방식

 - 지정된 시간 이후에만 접근가능하도록 설정

 

 

Eureka Server Application.yml

eureka:
  server.enableSelfPreservation: false
  instance:
    hostname: localhost
    prefer-ip-address: true
  client:
    #eureka server를 client로 등록
    registerWithEureka: false
    #client에서 서비스 리스트를 캐싱
    fetchRegistry: false
    serviceUrl:
      defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
728x90
반응형