HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
📝
남득윤 학습 저장소
/Spring Cloud로 개발하는 MSA/
3. API Gateway Service
3. API Gateway Service
3. API Gateway Service

3. API Gateway Service

@)See Also
API 게이트웨이 패턴과 클라이언트-마이크로 서비스 간 직접 통신
 
API Gateway Service
  • 사용자가 설정한 라우팅 설정에 따라서 각각 엔드포인트로 클라이언트 대신에 요청하고 응답을 받으면 다시 클라이언트에 전달하는 일족의 프록시 역할
  • 시스템의 내부 구조는 숨기고 외부의 요청에 대해 적절한 형태로 가공할 수 있다는 장점
 
notion image
클라이언트에서 Microservice 의 endpoint에 대한 변경이 일어 나는 경우 Client Apps도 같이 수정, 배포가 이루어 져야.
 
notion image
모든 MicroService로의 요청에 대한 Single Access point 제공
 
  • 인증 및 권한 부여
  • 서비스 검색 통합
  • 응답 캐싱
  • 정책, 회로 차단기 및 Qos 다시 시도
  • 속도 제한
  • 부하 분산
  • 로깅, 추적, 상관관계
  • 헤더, 쿼리 문자열 및 청구 변환
  • IP 허용 목록에 추가

Netflix Ribbon

  • Spring Cloud 에서 MSA간 통신
    • RestTemplate
    • Feign Client
    •  
  • Netflix Ribbon - Client side Load Balancer
    • 서비스 이름으로 호출
    • health check
    • notion image
    • Spring Cloud Ribbon 은 Spring Boot 2.4 에서 Maintenacne 상태
 

Netflix Zuul

  • Routing
  • API Gateway
  • Spring Cloud Zuul 은 Spring Boot 2.4 에서 Maintenacne 상태
 

Spring Cloud Gateway