문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
java:zuul [2018/09/12 09:23] kwon37xi |
java:zuul [2021/11/09 10:16] kwon37xi [Netflix의 Client Serving Server] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
- | ====== Zuul - Edge Service====== | + | ====== Zuul - API Gateway |
- | * [[https:// | + | * [[https:// |
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[: | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
- | ===== Edge Service | + | ===== Netflix의 Client Serving Server |
- | * Edge Service | + | * Web Browser 혹은 App 등이 접속하는 서버를 API Gateway 로 만들면 안된다. |
- | * 여기서 권한 문제가 생기는데 Edge Service 뒷단에서 | + | * Client Server Adapter Code Server 를 두고 |
- | * 뒷단 API 서비스(보통 | + | * API Gateway |
+ | * Netflix 는 Client 의 종류가 TV, PC, Android, iOS 등 너무 다양해서 API Gateway | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
[[https:// | [[https:// | ||
- | ===== 참고 | + | [[https:// |
- | * [[http://woowabros.github.io/r&d/2017/06/13/apigateway.html|배민 API GATEWAY | + | |
+ | [[https:// | ||
+ | ===== Spring Cloud Neflix Zuul ===== | ||
+ | * [[https://cloud.spring.io/spring-cloud-netflix/multi/multi__router_and_filter_zuul.html|Spring Cloud Neflix Zuul]] | ||
+ | * [[https://spring.io/ | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[http:// | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | ==== 다중 path 지정 ==== | ||
+ | * [[https:// | ||
+ | * '' | ||
+ | <code yml> | ||
+ | zuul: | ||
+ | routes: | ||
+ | myserver_mypath: | ||
+ | path: /mypath/** | ||
+ | url: .... | ||
+ | serviceId: myserver | ||
+ | myserver_another_path: | ||
+ | path: / | ||
+ | url: ... | ||
+ | serviceId: myserver | ||
+ | </ | ||
+ | ==== actuator ==== | ||
+ | * ''/ | ||
+ | * boot 2.1 의 경우 '' | ||
+ | |||
+ | ==== Filter ==== | ||
+ | === Service ID 알아내기 === | ||
+ | * ' | ||
+ | <code java> | ||
+ | @Override | ||
+ | public boolean shouldFilter() { | ||
+ | RequestContext context = RequestContext.getCurrentContext(); | ||
+ | return " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 참고 ===== | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https://supawer0728.github.io/2018/03/ | + | * [[https://dzone.com/articles/dynamic-routing-through-zuul-with-rest-api-spring|Dynamic Routing Through |
+ | * [[https:// |