Request throttling is the deliberate practice of slowing down the rate at which a scraper sends requests, adding delays between them, to avoid hitting the target site's servers too hard.

The term is also used on the server side. Microsoft describes throttling as a technique cloud APIs use to limit how many requests can be made in a period of time, so the API stays available to all users. Either way, the goal is the same: keep traffic at a pace the server can handle.

Throttling vs. Rate Limiting

ThrottlingRate limiting
Main ideaControl the pace of requestsCap the number of requests in a time window
Excess requestsUsually delayed or spread outUsually rejected
Who applies itThe client, the server or bothUsually the server
Typical signalSlower responses, or 429 with Retry-After429 Too Many Requests

The two terms overlap in practice. AWS, for example, describes throttled requests over a limit as rejected with a 429 Too Many Requests error. See rate limiting for how servers count requests.

How Servers Throttle

  • Token bucket: AWS recommends this algorithm, where each request uses a token and tokens refill at a set rate per second.
  • Status codes: the most common signal is 429 Too Many Requests. Microsoft notes that not every API uses it: GitHub can respond with 403.
  • Wait times: some APIs add a Retry-After header saying how long to wait before the next request.

How Scrapers Throttle Themselves

  • Fixed delay: a set pause between requests to the same site.
  • Randomized delay: Scrapy's DOWNLOAD_DELAY_JITTER setting adds random variation to each delay, so requests don't arrive on an exact beat.
  • Adaptive delay: Scrapy's AutoThrottle extension adapts to a site's responses. It sets the target delay to the server's latency divided by a target concurrency, and doesn't speed up on error responses.
  • Concurrency caps: fewer concurrent connections to one site lowers the request rate as well.

Retries Can Undo Throttling

A scraper can pace its first requests well and still flood a site with retries. An Amazon Builders' Library article warns that if a system is overloaded, retries can make the overload worse instead of better. It gives an example where layers that each retry independently raise the load on a database 243 times.

The same article lists the fixes:

  1. Back off exponentially: increase the wait after every failed attempt.
  2. Add jitter: add randomness to each wait, so retries spread out in time instead of arriving together.
  3. Cap it: set a maximum wait and a maximum number of retries.

What It Means for Web Scraping

  • Throttle per site, not per job: limits apply to each target, so pace requests to each domain separately.
  • Treat 429 as a pause: wait for the Retry-After time, or back off with jitter when there isn't one.
  • New IPs don't replace pacing: switching IPs after a 429 doesn't help if the site also counts by cookie, account or fingerprint.