Answer the question
In order to leave comments, you need to log in
Should I make a lot of requests to the API?
Hello, there is a site on nodeJs, which has a page on which information will be pulled from 8-15 other sites via API.
Is it worth it to do so? Or how else can it be organized?
All requests can be made asynchronously.
Answer the question
In order to leave comments, you need to log in
organize caching of API responses on your server. think about how often you need up-to-date data from the API and update the cache as needed. if your site has many users, and API requests do not depend on a specific user of the site - caching responses will greatly reduce the number of repeated requests.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question