Unable to match serviceId and routeId
See original GitHub issuerateLimit version 2.4.1 Here is my yml configuration.
ratelimit:
key-prefix: ${spring.cloud.client.ip-address}:apiserv_rate_limit
enabled: true
repository: REDIS
behind-proxy: true
default-policy-list: #optional - will apply unless specific policy exists
- limit: 10
quota: 1000
refresh-interval: 2000
type:
- url
policy-list:
cloud-currencyBackend:
- limit: 10
quota: 1000
refresh-interval: 60
type: #optional
- url=/backend/currency/**
routes:
cloud-currencyBackend:
path: /backend/currency/**
serviceId: currency-service
stripPrefix: false
Every time while RateLimitProperties.getPolicies(key)
execute , the key
will be routeId
likes /backend/currency/**
.
My policyList
is serviceId : targetPolicy
likes cloud-currencyBackend: some policy
. Therefore the result of this method will always be defaultPolicyList
.
How can I make this work ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (5 by maintainers)
Top Results From Across the Web
8. Router and Filter: Zuul - Spring Cloud
Any regular expression is accepted, but all named groups must be present in both servicePattern and routePattern . If servicePattern does not match...
Read more >How to properly execute LIKE and CASE clause in JPQL
I want to execute a query that works in sql but when I try to run it with the @Query annotation the program...
Read more >kong/03-plugins_spec.lua at master - GitHub
route = bp.routes:insert({ service = { id = service.id }, ... "must match the protocols of at least one route pointing to this...
Read more >RouteSummary - AWS Migration Hub Refactor Spaces
A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that...
Read more >GetRouteResponse.Builder (AWS SDK for Java - 2.17.290)
Indicates whether to match all subpaths of the given source path. GetRouteResponse.Builder ... routeId(String routeId) ... serviceId(String serviceId).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
is
cloud-currencyBackend
the name of the service that is serving the/backend/currency/**
endpoints?OK, I’ll try it on latest version. Thanks.