Plain definition
Definition of Rate Limiting
A traffic-control safeguard that caps how many requests a single IP address, user, or API key can send inside a given time window.
HTTP 429 Too Many Requests + Retry-After: <delay-seconds> when Request Count > Window AllowanceWorked example
Consider a made-up PDF invoice generator called BillCraft hosted at `https://api.billcraft.example`. Each PDF render costs CPU time and third-party storage writes, and its login endpoint sends paid transactional emails. Before opening public signups, the founder sets tiered sliding-window limits: 5 requests per 15 minutes per IP and email on `POST /auth/magic-link`, 60 requests per minute per API key on `POST /v1/invoices`, and 120 requests per minute on public read routes.
Two days after launch, a misconfigured customer script enters a retry loop and hammers `POST /v1/invoices` 40 times per second. On request 61 inside that minute, BillCraft stops hitting its PDF worker and immediately returns HTTP `429 Too Many Requests` along with `Retry-After: 45` and `X-RateLimit-Remaining: 0`. Paying customers on other API keys see zero slowdown, and the customer's client reads `Retry-After`, pauses 45 seconds, and avoids an unexpected compute bill.
Why it matters when you launch
One aggressive scraper, credential-stuffing bot, or buggy webhook consumer can spike serverless compute bills or lock up your database within minutes of a public launch. Under RFC 6585 and MDN HTTP semantics, returning `429 Too Many Requests` with a `Retry-After` header tells well-behaved clients and crawlers exactly when to back off instead of hammering your origin endlessly.
Rate limiting is especially vital on expensive or abused routes: magic-link email triggers, AI completion endpoints, password checks, and export jobs. Separate limits by caller identity (API key or authenticated user ID) for logged-in routes so one noisy coworker behind a shared office IP does not lock out an entire company.
Common mistakes
- Limiting strictly by client IP without trusting the right proxy header, accidentally throttling every user behind a single CDN or office NAT gateway.
- Applying rate limits only after parsing huge payloads or querying the database, burning server capacity before rejecting excess traffic.
- Returning generic `500` or `403` errors without a `Retry-After` header, causing SDKs and crawlers to retry aggressively instead of backing off.
- Leaving email-sending, AI generation, and login routes unthrottled on day one, letting bots burn through your monthly provider quota overnight.
Tools and guides that use it
Free tool
Launch Day ChecklistEverything to check before, during and after launch day, saved in your browser.Free tool
Live Launch Readiness CheckerInspect any live URL for HTTPS, title, meta description, canonical, Open Graph cards, JSON-LD and AI search crawler access.Founder guide
How to Launch an AI Tool: Directories, Demos and Trust (2026)AI tools launch into crowded categories and skeptical readers, so show real output, be open about models, data and cost, and pick the directories, boards and communities worth your time.Founder guide
A 30-Day Launch Plan for Solo Founders (2026)What to do each week, from 30 days out to the week after launch, with the review times and queues that decide when to submit where.Related glossary terms
Official sources
Pritam Ghosh runs Hauntboard and maintains this glossary.
Published · Updated
Building something real? Launch it in public.
A person reviews every launch on Hauntboard, and every view and visit it sends your site is published on your launch page. Free to submit.