I am making calls to the TransactionSearch PayPal API via PHP cURL.
Unfortunately, the API reacts very slowly, sometimes it takes from 30 seconds to more than 5 minutes (depending on the number of records returned by the API) for one client.
Currently, the script starts the cron job and cycles through each client one at a time. However, if the number of customers increases, the whole process will take a very long time (several hours) to complete. This is not good.
Essentially, I need to run (and process) several API calls at the same time. What is the best way to achieve this?
Jonob source share