Interview concept

What is rate limiting?

Rate limiting restricts how many requests a client can make within a time window, protecting services from overload and abuse while keeping capacity fair across users.

Interview concept

How it works

Algorithms

Token bucket, leaky bucket, fixed window, and sliding window each balance burst tolerance and smoothness.

Where it runs

Rate limits apply at the API gateway, load balancer, or service layer, often per user or per IP.

Responses

Limited requests typically receive a 429 status with retry guidance.

Interview concept

Responsible use

Use any live AI assistant only where interview, workplace, school, and platform rules allow it. Do not use generated answers to misrepresent your skills, experience, or authorship.

FAQ

Common questions.

What is the token bucket algorithm?

Tokens refill at a fixed rate and each request consumes one; requests are allowed while tokens remain, permitting controlled bursts.

Where should rate limiting live?

Often at the gateway or load balancer for broad protection, with finer per-service limits where needed.