Skip to content

yurim022/api_gateway

Repository files navigation

API GATEWAY

Spring Cloud로 개발하는 마이크로 서비스를 듣고 실습한 내용입니다.

개발환경

  • Java11
  • SpringBoot
  • SpringCloud
  • Postman
  • Eureka
  • zuul

API Gateway + Service discovery + Sample service

discoveryservice - Service discovery
apigateway-service - Spring Cloud Gateway
zuul-service - Spring Cloud Netflix Zuul
first-service - example for apigateway service
second-service - example for apigateway service

how it works

  1. first-service, second-service, api-gateway를 eureka 서버에 등록
  2. gateway를 통해 first/second 서비스에 접근
  3. 복수의 service를 등록하여 eureka가 load balancing

request example

GET localhost:8000/first-service/check

image

random port설정을 해놓은 first service는 여러개가 띄워져 있을때 eureka가 자동으로 로드밸런싱 하여 서버 매핑해줌.

eureka image

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages