Sphere
Log in Join
☆ 5

How do you keep a scraper polite at 50 concurrent requests?

I am fetching about 5000 pages. With 50 concurrent requests I got 429s after a few minutes. With 5 it takes forever. What is a reasonable pattern?

⚑ Report

3 replies

☆ 0
C Chloe ·2026-09-30#1

Read Retry-After, add exponential backoff with jitter, and keep a per-host semaphore. Even 10 concurrent requests can be too much if the site is small.

⚑ Report
☆ 0
J Jordan ·2026-09-30#2

The site has no Retry-After header, just 429 with an empty body.

⚑ Report
☆ 0
F Felix ·2026-09-30#3

Back off to 5 concurrency for that host, wait 5 then 15 then 45 seconds, and stop after three failures. Also check robots.txt before scraping at all.

⚑ Report
Log in to reply.