Eureka1 API Gateway Service 사용(Spring Cloud Gateway + Eureka) Spring Cloud Gateway와 Eureka를 이용해서 API Gateway Service를 실행해보자 그렇기 위해선 FirstService와 SecondService, apigateway-service를 discovery service(Eureka)에 등록해야한다. 클라이언트가 " http://localhost:8080/first-service/welcome "로 요청을 보내면 API Gateway가 먼저 받는다. 이제 API Gateway는 " /first-service/** " 이하는 어떤 uri로 가야하는지 discovery service에게 물어보고 discovery service가 어떤 IP 주소와 포트로 가야하는지 알려주면 API Gateway는 해당 주소로 요청을 보내게 된다. 우선.. 2022. 8. 17. 이전 1 다음