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

Rate Limiting #447

Open
Vithey-Code opened this issue Apr 25, 2023 · 1 comment
Open

Rate Limiting #447

Vithey-Code opened this issue Apr 25, 2023 · 1 comment

Comments

@Vithey-Code
Copy link

Vithey-Code commented Apr 25, 2023

Is your feature request related to a problem? Please describe.
A common problem with web services and APIs is that they may be overwhelmed by a high volume of requests from a single source, such as a bot or an unauthorized user. This can lead to reduced performance and potentially even downtime. Rate limiting is a technique used to mitigate this problem by restricting the number of requests that can be made within a certain time period. However, if rate limiting is not implemented properly, it can also result in legitimate users being blocked from accessing the service. Therefore, finding the right balance between preventing abuse and ensuring access for legitimate users can be a challenge.

Describe the solution you'd like
For rate limiting, I would like to see web services and APIs implement effective and configurable rate limiting policies that can differentiate between legitimate and abusive traffic. Specifically, I would like to see rate limiting policies that can:

Limit the number of requests made by an individual user or IP address within a given time frame
Allow for flexibility in adjusting the rate limit threshold and time window to accommodate changing traffic patterns
Distinguish between normal user traffic and malicious traffic, such as DDoS attacks or bots, and apply more strict rate limiting policies to abusive traffic
Provide meaningful feedback to users who are being rate limited, such as error messages with information on how to resolve the issue and/or contact support
Monitor and analyze traffic patterns to adjust rate limiting policies and improve their effectiveness over time.
In general, the goal should be to implement rate limiting policies that strike a balance between preventing abuse and ensuring that legitimate users can access the service without disruption.

@vicheanath
Copy link

rate limit middleware come by default default with .net core please check this doc. just few line of code
https://learn.microsoft.com/en-us/aspnet/core/performance/rate-limit?view=aspnetcore-8.0

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

2 participants