Skip to content

Provide Quota Filter based on redis #1402

Open
@HappyTobi

Description

@HappyTobi

Hey there,

what do you think of a new quota filter (based on redis) where you can use a limit and different period "units" like: "second","minute","day","month","year","abs"

filters:
   - name: RequestQuotaFilter
      args:
         key-resolver: "principalNameKeyResolver"
         redis-quota-filter:
         limit: 10
        period: "DAY"

With a quota filter it would be easy to create one click urls, api-key urls or some other things.
Filter will give you the possibility to limited a quota with periods you really need.

Currently you can only limit a quote by using the rate limiter where you can't setup a fine-grained quota (because the filter is not for setting up a quota check 😀).

So if you like the idea, i would like to implement the new Filter that can handle specific quotas for routes / service.
To use it in a more generic way you can add your custom key-resolver (like the rate limiter).

What do you think?

If you like it, I can bring that feature / filter in.

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions