Answer the question
In order to leave comments, you need to log in
Pattern for asynchronous requests?
Task: make N asynchronous requests, place their results in one array and write them down.
Something like this:
It will be implemented in php (and no, queues will not work)
ps: the question is not about the implementation in php (which means that no php should appear in the tags). There are no problems with choosing asynchronous libs. The question is about patterns. I'm interested in examples of the implementation of such systems. You can provide implementation examples from absolutely any OOP languages.
Answer the question
In order to leave comments, you need to log in
curl_multi
And an alternate reality feature: Swoole - discover the world of asynchronous PHP and coroutines!
Take a ready solution guzzle - this is an http client
Here he has a ready solution: https://guzzle3.readthedocs.io/http-client/client....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question