spring-cloud / spring-cloud/spring-cloud-gateway
let AbstractGatewayFilterFactory get ability to produce an OrderedFilter (mainly the build-in factory)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.9k
- Forks
- 3.5k
- Avg merge
- 20h 57m
- Merged PRs (30d)
- 8
Description
Is your feature request related to a problem? Please describe.
my Gateway has some Ordered GlobalFilter(Order value is -40/-50), now i add a build-in ratelimiterfactory,but the ratelimiter Filter executes after these GlobalFilter(becauseits Order value minimum is 0),i want to execute ratelimiter with a Order num before GlobalFilter
Describe the solution you'd like
user can control the Order of the Filter instance produced by Filterfactory
Describe alternatives you've considered
-
we can define a BaseOrderedConfig(eg,
Configurable<C extends BaseOrderedConfig>) or some thing likes this as a super type of user define Config. -
modify build in factory Configs , let them implement Ordered interface
decide appropriate Order when parse FilterDefinition to Filter
Additional context
Add any other context or screenshots about the feature request here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing AbstractGatewayFilterFactory, the built-in rate limiter factory, and the FilterDefinition parsing path. Compare how factory-created filters receive their order with how global filters are ordered. Done means users can configure the produced filter's order and the rate limiter executes in the intended position relative to ordered GlobalFilters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100