Overview of @nestjs/throttler
masterThe @nestjs/throttler package is a rate-limiter for NestJS that works across different contexts. It ensures users can only make a specific number of limit requests within a given ttl (Time To Live) period for each endpoint.
Key features:
- Identification: By default, users are identified by their IP address, but this can be customized using a
getTrackerfunction. - Storage: Includes a built-in in-memory cache for tracking requests, with support for external storage providers.