Framework/Spring
Spring Cloud Netflix (3) - zuul
swifty
2019. 6. 6. 15:46
Zuul은 Frontend로 부터 모든 요청을 받아 내부 마이크로서비스들에게 요청을 전달하므로 단일 종단점을 갖게하는 API Gateway 와 같은 역할을 수행한다. zuul 필터에 의해 다음과 같은 기능을 수행할 수 있다.
- CORS
- 인증
- 보안
- 라우팅
- 프록시
zuul filter
Zuul Filter는 크게 4가지 Filter로 나누어 진다.
- PRE Filter - 라우팅전에 실행되며 필터 ex) 인증
- ROUTING Filter - 요청에 대한 라우팅을 다루는 필터 ex) ribbon을 통한 라우팅
- POST Filter - 라우팅 후에 실행되는 필터 ex) resoponse에 대한 처리
- ERROR Filter - 에러 발생시 실행되는 필터
https://medium.com/netflix-techblog/announcing-zuul-edge-service-in-the-cloud-ab3af5be08ee
Announcing Zuul: Edge Service in the Cloud
the latest addition to Netflix’s Open Source Software suite
medium.com
https://github.com/Netflix/zuul/wiki/How-We-Use-Zuul-At-Netflix
Netflix/zuul
Zuul is a gateway service that provides dynamic routing, monitoring, resiliency, security, and more. - Netflix/zuul
github.com