Fetch Concurrency Control: Limit Simultaneous Requests with p-limit
Originally published at recca0120.github.io
Batch-fetching 100 API endpoints with Promise.all is one line. All 100 requests fire simultaneously.
Then the server returns 429 Too Many Requests, or just crawls.
p-limit caps how many run at once. Three l...
recca0120.hashnode.dev4 min read