I want to send about 2000 api calls to retrieve data from some api. How do i archive this without having any bottlenecks using axios?
How to send large number of requests from axios?
869 Views Asked by Mahela Pradeep At
2
There are 2 best solutions below
Related Questions in NODE.JS
- How to solve CERT_UNTRUSTED error in nodemailer
- Run a loop over a callback, node js
- Implementing prerender.io middleware in sails.js
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- formatting path string in javascript
- One to One screensharing using WEBRTC
- Create polygon from grid (for collisions)
- Strange npm behavior when installing packages like grunt
- Convert JSON.gz to JSON in node js
- "Your npm version is outdated." but it's not. While install yo
- Why put methods on the prototype of a class instead of declaring them in the constructor?
- Node JS Async Response
- mongoose get property from nested schema after `group`
- Cannot Receive Incoming call on Twilio android Client
- How can I change a specific line in a file with node js?
Related Questions in REACTJS
- What is `_dereq_()` inside React?
- React TypeError: React.renderComponent is not a function
- React - saving a component in the ref callback
- React Rails component: manually triggering a re-render
- React, ES6 - getInitialState was defined on a plain JavaScript class
- How to get multiple selected options value in React JS?
- React.render replace container instead of inserting into
- reactjs datagrid use html
- props is not initialized in react component
- How to display xml data using Reactjs
- hooking up the data model in ReactJS - syntax
- ReactJS: How to use an immutable empty array or object
- How to use Sinon.js FakeXMLHttpRequest with superagent?
- React select onChange is not working
- ReactJS - Tutorial Comment System > Threaded commenting
Related Questions in AXIOS
- How to set state of response from axios in react
- React map an axios array
- Trouble getting an Authentication Token using Axios for React
- error TypeError: Cannot convert undefined or null to object
- Axios get waterfall way
- Weather API request cors error
- onUploadProgress is not working as expected in axios?
- Returning JSON into
- Intermittent Axios Get Request Failure
- POST with Body Not Passing Cookies
- No 'Access-Control-Allow-Origin' header is present on the requested resource with API and website on same port
- Axios data being returned, but calling code not working
- How can I merge multiple axios calls into one payload using redux and redux-promise?
- how to serialize parameters using axios
- Populate table in Vue template component from rest api
Related Questions in BOTTLENECK
- Next.js poor performance (request/second) for large page
- Bottleneck does not seem to actually rate-limit requests?
- Error installing pandas_profiling with Pip on Ubuntu 20.04
- Odoo.sh page loading too slow on mobile
- Postgresql bottleneck neither CPU, network nor I/O
- What is the maximum number of API calls per second that Workday can support
- Is there a way to find maximum bottleneck path in a DAG in O(|E|) time?
- WINDOWS - Could not build wheels for bottleneck which use PEP 517 and cannot be installed directly
- Creating a bottleneck obstacle for agents
- slicing for each column of 2D numpy array
- Azure Hosted ASGI Django Server Bottleneck When Handling Over a Dozen Simultaneous Requests
- async await geocode api call within map with bottleneck
- optimize data input pipeline with keras datagenerator by using tf dataset
- Rate Limit Slack API Calculation
- Having trouble saving a list of match data from riot api to a state array
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
2000 api calls in parallel or one after another? it would be really resource intensive if it is in parallel, depending on your device it might me possible or maybe not.
but if it is one after another it can be easily achieved with a simple loop.
here is what I would do in case of parallel implementation: this would be a little trial and error in the beginning to find the best parallelism factor.
use lodash chunks to make the complete 2000 requests to chunks of size x api request objects (reference: https://www.geeksforgeeks.org/lodash-_-chunk-method/) now for each chunk, we will make api calls in parallel. that is each chunk will be in sequential order but within each chuck we will make parallel api calls.
sample code: