# Rate Limiting — NestJS: Scalable Node.js APIs बनाना

Source: https://www.skillbyai.com/hi/nestjs/nestjs-rate-limiting

> @nestjs/throttler और @Throttle decorator से अपनी API को दुरुपयोग से बचाएँ, per route या globally।

## Throttle decorator

Time window में requests को limit करने के लिए `@Throttle()` guard का उपयोग करें।

```typescript
import { Throttle } from '@nestjs/throttler';

@Throttle({ default: { limit: 10, ttl: 60000 } })  // 10 requests per minute
@Get()
findAll() { ... }
```
