This post was originally published in Portuguese on my blog: Rate limiting em Minimal APIs com o middleware nativo do .NET. Every API exposed to the internet will, sooner or later, get a client that decides to hit the same endpoint a thousand times per second. It might be a bug in a retry loop, a poorly written script or someone trying their luck. If you have no limit at all, the database, the CPU and your other users pay the bill. The good news is that since .NET 7, rate limiting ships with the
This post was originally published in Portuguese on my blog: Rate limiting em Minimal APIs com o middleware nativo do .NET. Every API exposed to the internet will, sooner or later, get a client that decides to hit the same endpoint a thousand times per second. It might be a bug in a retry loop, a poorly written script or someone trying their luck. If you have no limit at all, the database, the CPU and your other users pay the bill. The good news is that since .NET 7, rate limiting ships with theThis article was originally published by Dev Community.
Read Full Story on Source Site →