php - Laravel - Run a method on multiple different processes
I have a method that is going to gather data from various APIs for many users. Right now, it does it onlysequentialy
, one user after another. The actual traffic produced by those API calls is very low, so I wondered, how could I process, say,5 users at a time
. Multiple processes of Laravel came to mind, but upon closer inspection it turned out, that Laravel doesn't seem to have faculties for that.
I found aSymphony
component calledThe Process Component
, that could do the job, probably.
My question is: has anyone done something similar? Is there a better solution than using that package? Thank you!