Skip to content

[QUESTION] How to make parallel / multiple requests at once? #1911

Answered by sindresorhus
higoka asked this question in Q&A
Discussion options

You must be logged in to vote

Your question is not directly related to Got, but it's more of a general JavaScript question. Got returns a promise. There are many ways to run promises concurrently. I would recommend using something like p-map as it lets you limit the concurrency. What the concurrency limit should be really depends on the server. You have to make sure you won't get banned by the server owner.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@higoka
Comment options

@xairoo
Comment options

@higoka
Comment options

@xairoo
Comment options

Answer selected by szmarczak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1910 on October 29, 2021 17:43.