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 answers
Related Questions in NODE.JS
- Using Puppeteer to scrape a public API only when the data changes
- How to request administrator rights?
- How do I link two models in mongoose?
- Variable inside a Variable, not updating
- Unable to Post Form Data to MongoDB because of picturepath
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- My unban and ban commands arent showing when i put the slash
- how to make read only file/directory in Mac writable
- How can I outsource worker processes within a for loop?
- Get remote MKV file metadata using nodejs
- Adding google-profanity-words to web page
- Products aren't displayed after fetching data from mysql db (node.js & express)
Related Questions in REACTJS
- ussd reader in Recket Native module
- Teams tab application returns SSO error in mobile Outlook
- Github Pages Deployment deploys a blank page
- Is there any way to glow this bulb image like a real light bulb
- Optimize LCP ReactJs
- Page in React only renders elements after refreshing
- Unable to Post Form Data to MongoDB because of picturepath
- MERN Stack App - User Avatar Upload - 500 Error After Deployment on Render
- Hooks are not supported inside an async component error in nextjs project using useQuery
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- On the server side, it returns undefined but on the client side, logs the values no problem
- Multilevel dropdown with checkboxes in Select component
- TypeScript Error only on big type only when assigned to a variable
- Deployment through app engine, cloud sql database, problem connecting with server code, doesn't connect
- Data is not filtering in props. Showing passdata.map is not a function
Related Questions in AXIOS
- Check list of pages with axios
- Problem sending HTTP post request from VUE to ASP.NET Core MVC project
- Transitioning from Static to Dynamic Data in React with Express Backend
- Trying to fetch images from a Google Drive folder
- Parse the API response into desired type using axios or any other helpful methods in JavaScript/React.js
- get refresh token in axios interceptor
- react test with useEffect, axios and useParams
- How do I update my Bing web API search results in React.js after submitting query in search bar (serp format)
- NextJS getToken returns null on requests from server side components
- axios post request with formData using AxiosInstance
- How to type nextjs endpoint with TypeScript?
- My state is undefined despite being setted
- NextAuth custom adapter creation for an API endpoints
- Main thread frozen handling interval, sending accumulated data with enormous delay
- Every time I'm trying to fetch data from the TMDB API to search for a movie, I'm getting a 'parse is undefined' error
Related Questions in BOTTLENECK
- Next.js poor performance (request/second) for large page
- Rate Limit Slack API Calculation
- How to monitor IIS bottlenecks?
- How to send large number of requests from axios?
- optimize data input pipeline with keras datagenerator by using tf dataset
- async await geocode api call within map with bottleneck
- Having trouble saving a list of match data from riot api to a state array
- What is the maximum number of API calls per second that Workday can support
- Postgresql bottleneck neither CPU, network nor I/O
- Odoo.sh page loading too slow on mobile
- bottleneck.move_mean get different result for the same ndarray
- Azure Hosted ASGI Django Server Bottleneck When Handling Over a Dozen Simultaneous Requests
- CPU bottleneck Xeon 3104 with RTX A4000 when using PyTorch?
- Is there a way to find maximum bottleneck path in a DAG in O(|E|) time?
- slicing for each column of 2D numpy array
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?
Popular Tags
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)
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: