Glossary

Rate Limiting

Rate limiting restricts the number of requests from a single client (IP, token, user ID) per unit of time. It protects against DDoS, brute-force password attacks, API abuse, and reduces server load.

Algorithms

Implementation

Store counters in Redis — it supports atomic increment and TTL. The HTTP response when a limit is exceeded: 429 Too Many Requests with a Retry-After header.