Skip to main content

Creating 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 @daiso-tech/core/rate-limiter API docs.