marcosbarbero / spring-cloud-zuul-ratelimit

Rate limit auto-configure for Spring Cloud Netflix Zuul

Home Page:https://blog.marcosbarbero.com/spring-cloud-netflix-zuul-rate-limit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

url_pattern in v.2.42.0

developer147 opened this issue · comments

Describe the question
How to enforce rate-limiting per origin on a specific url_pattern? For example, apply a rate limit of 10 for every 120 seconds on the following url_pattern [1]. I do not want any limitations on the rest of the endpoints.

[1] => /availability-zones/*

Additional context
ratelimit:
enabled: true
repository: REDIS
default-policy-list:

  • limit: 10
    refresh-interval: 120
    type:
    - origin
    - type:
    - url_pattern= /availability-zones/*

The above config is applying rate limit not only on an endpoint like localhost:8080/availability-zones/ and localhost:8080/availability-zones/zone1, etc but also on localhost:8080/health-check.

Hello @developer147, thanks for getting in touch, we will get back to you asap! If you have issues in the 1.x.x.RELEASE line we recommend you to update to the latest version, unfortunately this line is not supported anymore.

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 1 day