Rate limiting library for Azure Functions with ASP.NET Core integration
$ dotnet add package ThrottlingTroll.AzureFunctionsAspNetRate limiting/throttling middleware for Azure Functions with ASP.NET Core Integration.
Install from NuGet:
dotnet add package ThrottlingTroll.AzureFunctionsAspNet
Make sure you call one or another form of .UseThrottlingTroll() method at startup:
var builder = new HostBuilder();
// .....
builder.ConfigureFunctionsWebApplication((builderContext, workerAppBuilder) => {
workerAppBuilder.UseThrottlingTroll();
// .....
});
Here is a sample project, that demonstrates all the above concepts.