Skip to main content

Creating RateLimiter policies

Implementing your custom IRateLimiterPolicy​

In order to create custom rate-limiter you need to implement the IRateLimiterPolicy contract. Custom rate-limiter policies can be used with DatabaseRateLimiterAdapter and DatabaseRateLimiterProviderFactory.

To understand how to implement a custom IRateLimiterPolicy, refer to the FixedWindowLimiter implementation.

Further information​

For further information refer to eridu-tech/rate-limiter API docs.