Brake Pedal is a general purpose throttling library. The library provides the following features:
- Time based throttling: limit X number of requests over Y time period.
- Locking: block requests after X attempts over Y time period for Z time period.
- Decoupled storage: you can use the bundled repositories (in memory) or roll your own.
The BrakePedal.Http package provides code to use the BrakePedal library in a Web API application as an attribute, handler, or filter.
The BrakePedal.Redis package contains an implementation of a Redis BrakePedal repository which uses StackExchange.Redis (https://github.com/StackExchange/StackExchange.Redis) for use with the BrakePedal library.
Install-Package BrakePedal -Version 1.0.3
dotnet add package BrakePedal --version 1.0.3
<PackageReference Include="BrakePedal" Version="1.0.3" />
paket add BrakePedal --version 1.0.3
Fix bug with MemoryThrottleRepository and GetThrottleCount.
This package has no dependencies.
This package is not used by any popular GitHub repositories.