C
C#2w ago
Krishna

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
Angius
Angius2w ago
My sincere condolences you have to work with this ancient relic
Angius
Angius2w ago
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...
Angius
Angius2w ago
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
Krishna
KrishnaOP2w ago
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
Angius
Angius2w ago
They're all different and fulfil different requirements So pick the one that fits
FusedQyou
FusedQyou2w ago
I assume you can't update the version of the project?
Krishna
KrishnaOP2w ago
Nah, I can't do it right now.
Want results from more Discord servers?
Add your server