Question : modern PHP is great for websites, but what are the solutions when you need to make some async work ? For example if I need to make few third party API calls in parallel ? With Laravel I resorted to using queues which feels like more complicated than it had to be (each worker takes up quite a bit of memory). Eventually I switched to SQS + Lambda + node.js. Is there any mature way to do async work in PHP ? I…
There’s curl-multi[0] you can use for that purpose. Not as nice as promises/async/await, but it gets the job done for your example.
[0] https://secure.php.net/manual/en/function.curl-multi-exec.ph...