Open closte opened 11 months ago
Are you asking generic questions regarding machine configuration? Or your question related to .NET product?
Are you asking generic questions regarding machine configuration? Or your question related to .NET product?
Nope.
.NET has a built-in rate-limiting feature, so how do we whitelist some Partition keys or change the limit value for one or more Partition keys?
Example:
Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.
Author: | closte |
---|---|
Assignees: | - |
Labels: | `question`, `area-System.Net.Http`, `untriaged`, `Team:Libraries`, `needs-area-label` |
Milestone: | - |
This feels more like a question for ASP.NET folks, since the system libraries don't implement any rate limiting AFAIK.
Edit: I may have been wrong, I found this blog post which talks about it: https://devblogs.microsoft.com/dotnet/announcing-rate-limiting-for-dotnet/
While the scenario you describe is not directly suppoted, you can probably inherit from PartitionedRateLimiter<int>
and implement your custom logic there.
@BrennanConroy do you have any insight here?
I just want to know if the following use cases are possible or will be possible in the near future.
Let's say we have rate limiting per IP address.
Real-life use cases: