T
T
Tema Agaev2018-04-07 04:52:16
PHP
Tema Agaev, 2018-04-07 04:52:16

How to speed up api loading?

When loading 2500 history of cryptocurrencies through api, the server issues a 502 error. How to speed up or optimize the download? Or solve the problem in a different way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Shved, 2018-04-09
@shvedan1

The problem can occur for various reasons (not enough resources to generate a response, not enough RAM, a long time to generate a response and the request ends by timeout)
Without seeing the code and not knowing the API, it will not be possible to give exact advice, but I can advise a universal solution:
do not send heavy requests to the API - request data in parts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question