Rate limiting library for Azure Functions
$ dotnet add package ThrottlingTroll.AzureFunctionsRate limiting/throttling middleware for Azure Functions (.NET Isolated).
Install from NuGet:
dotnet add package ThrottlingTroll.AzureFunctions
IMPORTANT: if in your project you are using ASP.NET Core Integration, then you need to install and use ThrottlingTroll.AzureFunctionsAspNet package instead.
Make sure you call one or another form of .UseThrottlingTroll() method at startup:
var builder = new HostBuilder();
// .....
builder.ConfigureFunctionsWorkerDefaults((hostBuilderContext, workerAppBuilder) => {
workerAppBuilder.UseThrottlingTroll();
// .....
});