📖 Step 6: Development#452 / 498

Rate Limiting

Rate Limiting

📖One-line summary

Limiting how many requests a user or IP can make within a set time.

✨Example

// 레이트 리밋 (Rate Limiting)

일정 시간 동안 한 사용자나 IP가 보낼 수 있는 요청 수를 제한하는 기법

> ready_

⚡Vibe coding prompt examples

>_

Add a 10-requests-per-minute per-user rate limit to our AI generation API with Upstash Redis, returning 429 and the time remaining when exceeded.

>_

Write middleware that rate-limits the login API by IP to block brute-force attacks.

>_

Write TypeScript code that retries with exponential backoff when the OpenAI API returns 429.

Try these prompts in your AI coding assistant!