Answer the question
In order to leave comments, you need to log in
How to make a function execution queue?
Such a task:
1. Select entity IDs from the database.
2. Select for them from the database data from another table.
3. According to this data, call a function (parsing xml and writing to the database), but in such a way that no more than 5-7 are performed at the same time. That is, 5 pieces are being parsed, the rest are waiting. One shot back - another went, the others finished - the rest went.
Is it necessary to use Gearman and the like? Or can it be implemented in bare PHP (Yii)?
If you need to use Gearman - with an example, please, how to do it. I have some experience with Gearman.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question