Zuul: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 53: | Line 53: | ||
* [https://cloud.spring.io/spring-cloud-security/2.1.x/multi/multi__configuring_authentication_downstream_of_a_zuul_proxy.html Configuring Authentication Downstream of a Zuul Proxy] | * [https://cloud.spring.io/spring-cloud-security/2.1.x/multi/multi__configuring_authentication_downstream_of_a_zuul_proxy.html Configuring Authentication Downstream of a Zuul Proxy] | ||
* [https://levelup.gitconnected.com/spring-cloud-zuul-api-gateway-dffa5933d570 Spring Cloud with Zuul API Gateway] | * [https://levelup.gitconnected.com/spring-cloud-zuul-api-gateway-dffa5933d570 Spring Cloud with Zuul API Gateway] | ||
* [https://www.baeldung.com/rest-api-spring-oauth2-angular Spring REST API OAuth2 Angular] | |||
|} | |} |
Revision as of 21:08, 11 August 2020
spring:
application:
name: ZuulProxy
zuul:
routes:
api:
path: /api/self/rest/**
url: https://localhost:2013/ebis/api/self/rest
static:
path: /**
url: https://localhost:2015/
sensitive-headers: Cookie,Set-Cookie
server:
port: 1983
eureka:
client:
register-with-eureka: false
Conceptual
Zuul is an API Gateway or an Edge Server developed by Netflix. It is capable of performing the below tasks.
- Authentication and Security: Identifying authentication requirements for each resource and rejecting requests that do not satisfy them.
- Insights and Monitoring: Tracking meaningful data and statistics at the edge in order to give us an accurate view of production.
- Dynamic Routing: Dynamically routing requests to different backend clusters as needed.
- Stress Testing: Gradually increasing the traffic to a cluster in order to gauge performance.
- Load Shedding: Allocating capacity for each type of request and dropping requests that go over the limit.
- Static Response Handling: Building some responses directly at the edge instead of forwarding them to an internal cluster.
Filters
Filters are a way of extending Zuul’s default functionality and adding your own custom features. Filters can be divided into four types based on the stage that they are executed in, during the request routing process.
pre
Filters run before the request is routed.route
Filters can handle the actual routing of the request.post
Filters run after the request has been routed.error
Filters run if an error occurs in the course of handling the request.