Esc
  • Jump to
  • The board
  • All launchesSort and filter by week or category
  • Open statsEvery number, in public
  • Maker storiesApps that stopped hiding
  • Submit a launch
  • AICategory
  • AnalyticsCategory
  • API & BackendCategory
  • Audio & VoiceCategory
  • AutomationCategory
  • CommunityCategory
↑↓ to move↵ to openPress / anywhere
Sign in

What is 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.

Updated · Building

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.

Formula / syntaxHTTP 429 Too Many Requests + Retry-After: <delay-seconds> when Request Count > Window Allowance

Worked 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

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.

Launch free →

On the board

All →

Still hiding your app?

Put it on the board. Reviewed by a person, free to launch.

Launch free
Submit a launch