Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to limit the number of unique clients overall? #482

Open
gulzarahamed opened this issue Jul 11, 2024 · 0 comments
Open

How to limit the number of unique clients overall? #482

gulzarahamed opened this issue Jul 11, 2024 · 0 comments

Comments

@gulzarahamed
Copy link

gulzarahamed commented Jul 11, 2024

It was working perfectly for number of requests per second, per minute, per hour based on unique client Id, but how to configure overall unique client per second, per minute, per hour

"ClientRateLimiting": {
"EnableEndpointRateLimiting": true,
"StackBlockedRequests": false,
"HttpStatusCode": 429,
"ClientIdHeader": "X-ClientId",
"GeneralRules": [
{
"endpoint": "post:/api/employees",
"period": "1m",
"limit": 10
},
{
"endpoint": "post:/api/employees",
"period": "1h",
"limit": 50
},
{
"endpoint": "post:/api/employees",
"period": "1d",
"limit": 200
}]
}

@gulzarahamed gulzarahamed changed the title How to limit the number of unique clients and the number of requests per client How to limit the number of unique clients overall? Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant