Skip to content

Rate limit not resetting on time #262

@ak-notify

Description

@ak-notify

Hi,

I have rate limit configured at two levels
a. Server level - default
b. Route level - for some routes

For routes with configured rate limit (E.g 100req/min), when a constant load (requests/min more than configured limit) is applied the APIs continue to throw 429 even when the time limit for last window is expired.

Test case:
route: /test
rate limit: 100req/min
Applied load: 150req/min

Expected behaviour:
0-1min:
success: 100 req
fail: 50 req

1-2min:
success: 100 req
fail: 50 req

2-3min:
success: 100req
fail: 50 req

Total: 450req
success: 300req
fail: 150req

Actual behaviour:
0-1min:
success: 100req
fail: 50req

1-2min:
success: 0 req
fail: 150 req

2-3min:
success: 0 req
fail: 150 req

Total: 450req
success: 100req
fail: 350req

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions