J
J
jenya77712018-09-06 22:33:47
API
jenya7771, 2018-09-06 22:33:47

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

1 answer(s)
S
Sergey V, 2018-09-06
@jenya7771

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 question

Ask a Question

731 491 924 answers to any question