-
Notifications
You must be signed in to change notification settings - Fork 60
Zuul Filters
Wuyi Chen edited this page Apr 2, 2019
·
24 revisions
-
Pre filter
- Invocation: Invoked before routing the request to the target service.
- Uses:
- Request authentication.
- Request authorization.
- Make sure all the requests are in the consistent format.
- Log debug info.
-
Post filter
- Invocation: Invoked after the target service has been triggered and a response is being sent back to the client.
- Uses:
- Make sure all the response are in the consistent format.
- Log debug info.
- Collect statistics and metrics.
- Stream the response from the target service to the client.
-
Route filter
- Invocation: Invoked when the request is routing to the target service.
- Uses:
- Define a custom routing logic.
- A/B test.
-
Error filter
- Invocation: Invoke when an error occurs during the execution of other filters.
- Overview
- Getting Started
-
Technical Essentials
- Autowired
- SpringData JPA
- Configuration File Auto-loading
- Configuration Encryption
- Service Discovery with Eureka
- Resiliency Patterns with Hystrix
- Configure Hystrix
- Service Gateway with Zuul
- Zuul Filters
- Protect Service with Spring Security and OAuth2
- Use JWT as Access Token
- Store Clients and Users' Credentials to DB
- Integrate with Message Queue (Kafka)
- Integrate with Redis
- Tune Logging
- Log Aggregation
- Send Trace to Zipkin
- Build Runnable Jar
- Core Application Logic
- Components