Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gatsby-source-drupal): Use Got instead of Axios for retries & ca…
…ching support + restrict to 20 concurrent requests (#31514) * feat(gatsby-source-drupal): Use Got instead of Axios for retries & caching support + restrict to 10 concurrent requests Got is a lot more robust http library so let's use that instead of Axios. For a very small local test site, this drops sourcing time from ~4s to ~0.4s. Increasing the concurrency to 20 from 10 regresses back to 4s. So somewhere between 10 and 20 concurrent requests, my local setup gets grumpy. * fix lint * Update yarn.lock * Add keep-alive http agent * Fix tests * yarn.lock updates * WIP * 5 seems to the most stable value for concurrency & fastest for uncached sourcing * Update yarn.lock * Update renovate.json * Remove logging code * revert some unwanted changes * Add option for setting concurrency for API requests. Based on @Auspicus' testing, bump default concurrency to 20 (it was 2x faster for his site vs. 5) * Use Gatsby's cache so it's persisted to disk in between builds
- Loading branch information
1 parent
f91dd52
commit b0de8f8
Showing
7 changed files
with
149 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.