A
A
Alexander Andropov2021-08-03 22:24:26
PHP
Alexander Andropov, 2021-08-03 22:24:26

How to optimize sending requests to a third-party server?

Good day friends. There is a need to send 310 requests to the API of one service in 1 minute.
The problem is that it is impossible to form a request to get everything you need at once. In these requests, one parameter will change each time.

Tell me how to properly organize the sending of such requests so that the service does not heavily load its hosting. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Omelchenko, 2021-08-12
@pOmelchenko

Guzzle is able to perform asynchronous requests. The execution speed will be according to the speed of the slowest one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question