# Rate Limiting

> A cap on how many calls one user can make each minute.

**Field:** Software Development  
**Category:** APIs  
**Also known as:** Rate Limit, Throttling, 429 Too Many Requests, Retry-After

## Think of it like

Think of it like a ride at a fair. Only so many people get on each minute, and the rest wait.

## Definition

Rate limiting caps how many requests one user or key may send in a stretch of time. A limit might be 100 requests a minute. Past the limit, the server answers 429 Too Many Requests and often says how long to wait in a Retry-After header. It keeps one busy or buggy client from slowing the service for everyone. It also makes guessing passwords much slower.

## Example

Jack's script calls a weather API in a tight loop. After 60 calls in a minute, every answer is 429 until the minute is up.

## Example code

```http
HTTP/1.1 429 Too Many Requests
Retry-After: 30
```

Too many requests: wait 30 seconds, then try again.

## Why it matters

It keeps a service fair and running. It also turns many attacks from fast to very slow.

## Common mistake

Retrying a 429 at once, again and again. Wait the time Retry-After gives, and back off further if it repeats.

## Three principles

- **A cap per time.** Like 100 a minute.
- **429 past the limit.** With a wait time.
- **Fair for everyone.** One client cannot hog it.

## Related terms

- [Application Programming Interface (API)](https://learn.benibix.com/term/development/api)
- [HTTP Status Code](https://learn.benibix.com/term/infrastructure/http-status-code)
- [HTTP Header](https://learn.benibix.com/term/infrastructure/http-header)
- [API Endpoint](https://learn.benibix.com/term/development/endpoint)
- [Tokens per Minute (TPM)](https://learn.benibix.com/term/ai/tokens-per-minute)

---

Source: https://learn.benibix.com/term/development/rate-limiting
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
