Answer the question
In order to leave comments, you need to log in
How to correctly implement the cyclic execution of one task in PHP, with different parameters, without a queue server?
Hello, I wanted to ask knowledgeable people. I have, 50, lines with parameters. Each line initializes the same task, with different parameters. The task must be performed constantly, with a certain interval. There is no way to put a queue server. Which approach is correct:
1) Cyclic execution of each task by cron in turn
Or
2) Add execution of each task to cron, that is, organize multithreading
The minus of the first approach is that if there are a lot of tasks, the interval will become very large, the minus of the second is that hosting resources for multipoint are limited. I don’t know what to choose, or is it all nonsense and you still need to deploy the server? I would love to spend less.
Answer the question
In order to leave comments, you need to log in
1. You did not indicate whether the tasks are somehow related to each other.
2. And the sideboard will pull the execution of 50 tasks at once?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question