How to implement RateLimiting in a dotnet application that is built using .net461 framework version?
I am currently working on a project which is using .net461 framework version. I need to implement RateLimiting in the application. Are there any built in tools or libraries that I can use for this purpose or Should I implement my own RateLimiter?
7 Replies
My sincere condolences you have to work with this ancient relic
Stack Overflow
How do I implement rate limiting in an ASP.NET MVC site?
I'm building an ASP.NET MVC site where I want to limit how often authenticated users can use some functions of the site.
Although I understand how rate-limiting works fundamentally, I can't visual...
Nothing built-in, alas
Gotta rely on IIS, action filters, or middleware
This is what Stack Overflow started using in 2008: https://stackoverflow.com/a/1318059/6042255
They've since migrated to newer versions so it probably uses the built-in rate limiting, but still
Ahh Yes, I also researched on this, there are no built in tools made.
But can you suggest what would be best among below mentioned algorithms.
1. Token Bucket Algorithm
2. Leaking Bucket Algorithm
3. Fixed Window Counter Algorithm
4. Sliding Window Logs Algorithm
5. Sliding Window Counter Algorithm
6. Concurrency
They're all different and fulfil different requirements
So pick the one that fits
I assume you can't update the version of the project?
Nah, I can't do it right now.