백엔드 단에 API Gateway를 두어 Microservice로 요청되는 모든 정보에 대해서 일괄적으로 처리. (단일 진입점)
server:
port: 8000
eureka:
client:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://localhost:8761/eureka
spring:
application:
name: apigateway-service
cloud:
gateway:
routes:
- id: first-service
uri: lb://FIRST-SERVICE
predicates:
- Path=/first-service/**
- id: second-service
uri: lb://SECOND-SERVICE
predicates:
- Path=/second-service/**