🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Web Development Intermediate

What is API Rate Limiting?

A strategy for limiting the number of API requests a client can make within a specified time window to protect server resources.

API rate limiting prevents abuse and ensures fair resource sharing. Common algorithms include fixed window (100 requests/minute), sliding window (smoother distribution), token bucket (allows bursts), and leaky bucket (constant rate).

Rate limits are communicated via HTTP headers: X-RateLimit-Limit, X-RateLimit-Remaining, and Retry-After. Clients should implement exponential backoff when rate limited. API keys or JWT tokens identify clients for per-user limits.

Related Terms

CORS Headers
HTTP headers that control cross-origin resource sharing between different domains, specifying allowed origins, methods, and headers.
CSS Grid
A two-dimensional CSS layout system for creating complex grid-based designs with rows and columns.
Cookie
A small piece of data stored in the browser by a website to remember user preferences, login state, or tracking information.
gRPC
A high-performance RPC framework using Protocol Buffers and HTTP/2 for efficient service-to-service communication.
Server-Sent Events (SSE)
A web technology enabling servers to push real-time updates to browsers over a single HTTP connection, simpler than WebSockets.
Middleware
Software that sits between the request and response in a web application, performing processing like authentication or logging.
View All Web Development Terms →